Easy-to-use MCP server framework specialized for SSE.
Overview
what is ezmcp?
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.
how to use ezmcp?
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.
key features of ezmcp?
- 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
use cases of ezmcp?
- Building real-time applications that require server-sent events.
- Creating lightweight MCP-compatible servers for various tools.
- Integrating with existing FastAPI or Starlette applications.
FAQ from ezmcp?
- Is ezmcp suitable for production use?
Yes! ezmcp is designed to be lightweight and efficient for production environments.
- Can I use ezmcp with other frameworks?
Yes! ezmcp can be easily integrated with existing Starlette applications.
- How do I access the interactive documentation?
Once the server is running, you can access the documentation at
http://localhost:8000/docs.