EasyMCP is a flexible and beginner-friendly client for the Model Context Protocol (MCP). It allows you to connect to different types of MCP servers—SSE, NPX, and UV—so you can interact with various tools (e.g., file operations) and integrate with the OpenAI API for an enhanced chat experience.
add_server.py, which updates the appropriate configuration file (e.g., sse_servers.json, npx_servers.json, or uv_servers.json).asyncio and modern async features).env file)shell
git clone https://github.com/yourusername/EasyMCP.git
cd EasyMCPshell
python -m venv .venv
.venv\Scripts\activateshell
python3 -m venv .venv
source .venv/bin/activateshell
pip install -r requirements.txt.env.sample to .env (or create your own .env) and fill in the necessary API keys and configurations.EasyMCP uses several JSON configuration files to manage servers:
json
{
"mcpServers": {
"@modelcontextprotocol/time": {
"url": "https://router.mcp.so/sse/pnabizm8lkazpr"
}
}
}json
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [\
"-y",\
"@modelcontextprotocol/server-filesystem",\
"C:\\Users\\lotus\\Documents\\llm_books_papers",\
"C:\\Users\\lotus\\Documents\\llm_books_papers"\
]
}
}
}json
{
"mcpServers": {
"sqlite": {
"command": "uv",
"args": [\
"--directory",\
"parent_of_servers_repo/servers/src/sqlite",\
"run",\
"mcp-server-sqlite",\
"--db-path",\
"~/test.db"\
]
}
}
}shell
python main.pysse_servers.json, npx_servers.json, and uv_servers.json. When prompted, enter the corresponding number to select a server.read Build a Large Language Model.pdfuse read_file tool and read 2308.11432v5.pdfTo add a new MCP server configuration:
add_server.py:shell
python add_server.pynpx_servers.json, uv_servers.json, or sse_servers.json).Contributions are welcome! Please fork the repository and submit pull requests with detailed descriptions of your changes.
This project is open source and available under the MIT License.
For questions or feature requests, feel free to open an issue in the GitHub repository.
Happy coding!