MCP.so
Sign In
Servers

MCP Server com SSE e Autenticação Bearer

@br-silvano

MCP Server com SSE e Autenticação Bearer

Overview

What is MCP Server com SSE e Autenticação Bearer?

This is an MCP (Model Context Protocol) server implementation in TypeScript that uses Server-Sent Events (SSE) for remote message transport and Bearer token authentication. It enables secure, real-time communication between LLM hosts (e.g., Claude Desktop) and custom tools exposed via the MCP protocol.

How to use MCP Server com SSE e Autenticação Bearer?

Install Node.js 20+, clone the repository, run npm install, create a .env file with BEARER_TOKEN and PORT (default 3001). For development, execute npm run dev (uses ts-node). For production, run npm run build then node dist/index.js. Use npm run dev:inspect to start the MCP Inspector at http://127.0.0.1:6274 for testing tools.

Key features of MCP Server com SSE e Autenticação Bearer

  • Real‑time remote transport via Server‑Sent Events (SSE)
  • Bearer token authentication on all endpoints
  • Four example math tools (add, subtract, multiply, divide)
  • Modular architecture following SOLID and Clean Code principles
  • Development with ts‑node without pre‑compilation
  • Easy inspection via @modelcontextprotocol/inspector

Use cases of MCP Server com SSE e Autenticação Bearer

  • Exposing tools to LLM clients like Claude Desktop over a secure remote connection
  • Providing real‑time communication between a model host and custom backend services
  • Demonstrating how to implement MCP servers with SSE and authentication
  • Rapid prototyping and debugging of MCP tools using the built‑in inspector

FAQ from MCP Server com SSE e Autenticação Bearer

What is the Model Context Protocol (MCP)?

MCP is a protocol that enables LLM hosts (e.g., Claude Desktop) to communicate with servers that expose tools and resources. This project implements an MCP server.

What are the runtime dependencies?

Node.js version 20 or higher, npm, TypeScript, and ts‑node (for development). No database or external services are required.

How is authentication handled?

Every

Tags

More from Other