Pymcp MCP Server

A lightweight, flexible implementation of the Model Context Protocol (MCP) for Python applications, specializing in robust HTTP/SSE transport.

Local serverstdioPython

What is the Pymcp MCP Server?

A lightweight, flexible implementation of the Model Context Protocol (MCP) for Python applications, specializing in robust HTTP/SSE transport.

What it actually does

  • Modular Framework — Clean implementation of BaseMCPServer, BaseMCPClient, and MultiMCPClient
  • HTTP/SSE Transport — Robust HTTP/SSE implementation with automatic session management, configurable timeouts, and reconnection handling
  • Concurrent Task Execution — BaseMCPServer.run_with_tasks() method for easily running servers with persistent background asynchronous tasks
  • Tool Registration & Discovery — Simple decorator-based tool registration (@server.register_tool()) and a standard describe_tools endpoint for clients to dynamically query detailed tool capabilities (parameters, descriptions)
  • Server Push — Built-in support for server-initiated push notifications to clients and periodic keep-alive pings. Includes NotificationScheduler helper class
  • LLM Integration — Includes BaseLLMClient abstraction for easy integration with various LLM providers (an Anthropic Claude example is provided)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Pymcp MCP Server

{
  "mcpServers": {
    "pymcp-sse": {
      "command": "uvx",
      "args": ["pymcp-sse"],
      "env": {
        "ANTHROPIC_API_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
ANTHROPIC_API_KEYCredential the server authenticates with.Yes

Frequently asked questions

A lightweight, flexible implementation of the Model Context Protocol (MCP) for Python applications, specializing in robust HTTP/SSE transport. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.