Overview
ezmcp is an easy-to-use MCP server framework specialized for Server-Sent Events (SSE), designed to simplify the creation of MCP-compatible servers using a FastAPI-like syntax.
To use ezmcp, install it via pip and create an application using the provided API. Define tools with decorators and run the application to start serving requests.
- FastAPI-style decorator API for defining MCP tools - Automatic parameter validation and type conversion - Automatic generation of tool schemas from function signatures - Built-in support for SSE transport - FastAPI-style middleware support - Easy integration with existing Starlette applications - Interactive documentation page for exploring and testing tools
- Building real-time applications that require server-sent events.
- Creating lightweight MCP-compatible servers for various tools.
- Integrating with existing FastAPI or Starlette applications.
Add to your AI client
Use these steps to connect ezmcp in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"ezmcp-jujumilk3": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-ezmcp-jujumilk3"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"ezmcp-jujumilk3": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-ezmcp-jujumilk3"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"ezmcp-jujumilk3": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-ezmcp-jujumilk3"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"ezmcp-jujumilk3": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-ezmcp-jujumilk3"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"ezmcp-jujumilk3": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-ezmcp-jujumilk3"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"ezmcp-jujumilk3": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-ezmcp-jujumilk3"
]
}
}
}