mcp-streamable-http-server
by nunaszek
Overview
A development template for creating StreamableHttp services with flexible authentication, dynamic service registration, customizable middleware, and YAML-based tool configuration.
Installation
uv run serverEnvironment Variables
- HOST
- PORT
- SERVER_NAME
- JSON_RESPONSE
- LOG_LEVEL
- APP_VERSION
- DATABASE_URL
Security Notes
The provided `AuthorizeMiddleware` includes a `_verify_token` method that always returns `True` (a `TODO` placeholder). This means authentication is completely bypassed, and any API key provided by a client will be treated as valid and stored, allowing unauthorized access and session creation. Running this server as-is in a production environment is highly insecure and should not be done without implementing proper token verification.
Similar Servers
mcp-framework
This repository provides a framework for integrating and managing OAuth authentication within a server application, potentially involving HTTP streaming.
mcp-server-starter-ts
A minimal TypeScript starter template for building Model Context Protocol (MCP) servers, enabling AI applications to connect with data sources and tools through a standardized interface.
mcp-agg
Aggregates Model Context Protocol (MCP) servers (stdio, SSE, HTTP) and exposes their tools via a high-performance Fastify HTTP API.
mcp_server
This server template provides a foundation for building Model Context Protocol (MCP) servers to integrate with AI assistants and other MCP clients, offering tools for GitHub, Microsoft Graph, weather data, and JWT decoding.