EasyMCP¶
EasyMCP is a modern Python implementation of the Model Context Protocol (MCP), designed to manage and interact with distributed AI servers, tools, and resources using a consistent and extensible API.
Features¶
- ๐ Multi-server orchestration via
ClientManager
- ๐ง Built-in support for tools, resources, and prompts
- ๐ Automatic cache invalidation via push notifications
- ๐งช Async-native, with support for subprocesses, Docker, SSE transports
- ๐ Easy integration with search engines like Meilisearch
Installation¶
uv add easymcp
Quickstart¶
from easymcp.client.ClientManager import ClientManager
from easymcp.client.transports.stdio import StdioServerParameters
mgr = ClientManager()
servers = {
"timeserver": StdioServerParameters(command="uvx", args=["mcp-timeserver"])
}
await mgr.init(servers)
tools = await mgr.list_tools()
Check out Usage to learn more.