mcp-toolkit
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-toolkitwhat's the weather in London?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-toolkit
A hands-on exploration of the Model Context Protocol (MCP) — the open protocol (created by Anthropic) that standardizes how AI applications connect to external tools and data sources. This repo implements both sides of the protocol: an MCP client and an MCP server, plus a test suite and CI.
Why this project
MCP is becoming the standard way AI assistants (Claude, and increasingly others) discover and call external tools — think of it as a plugin interface for LLMs. Rather than just reading about it, I built:
A client that connects to Anthropic's official filesystem MCP server
A custom MCP server exposing my own tools
A client that talks to that custom server
Unit + integration tests, and CI to run them on every push
Related MCP server: MCP Server Basic Example
Architecture
MCP protocol (JSON-RPC over stdio)
┌──────────────┐ ┌──────────────────────────────┐
│ client.py │ <────> │ @modelcontextprotocol/ │ (official,
│ │ │ server-filesystem (npx) │ Anthropic)
└──────────────┘ └──────────────────────────────┘
┌──────────────┐ ┌──────────────────────────────┐
│client_local.py│ <────> │ server.py │ (custom,
│ │ │ - calculate(expression) │ this repo)
│ │ │ - get_weather(city) │
└──────────────┘ └──────────────────────────────┘Both clients follow the same MCP lifecycle:
Spawn the server as a subprocess (stdio transport)
initialize— protocol handshakelist_tools— discover what the server can do, dynamically (no hardcoded knowledge of the server's capabilities)call_tool— invoke a tool by name with typed arguments
This is exactly what Claude Desktop does under the hood when you connect an MCP server.
Repo structure
mcp-toolkit/
├── server.py # custom MCP server (FastMCP) — calculate & get_weather
├── client.py # MCP client -> official filesystem server
├── client_local.py # MCP client -> server.py
├── sandbox_files/ # sample files used by client.py's demo
├── tests/
│ ├── test_calculate.py # unit tests: correctness + security
│ └── test_server.py # integration tests: tool registration & schemas
├── .github/workflows/tests.yml # CI: pytest on Python 3.10 & 3.12
├── requirements.txt
└── LICENSEGetting started
git clone https://github.com/<your-username>/mcp-toolkit.git
cd mcp-toolkit
pip install -r requirements.txtRun the client against Anthropic's official filesystem server:
python3 client.pyRun the client against the custom server built in this repo:
python3 client_local.pyRun the test suite:
pytest -vExample output
$ python3 client_local.py
Connexion au serveur MCP maison (server.py)
✅ Session MCP initialisée
🔧 Outils disponibles :
- get_weather: Donne la météo actuelle (température, vent) pour une ville donnée.
- calculate: Évalue une expression arithmétique (+, -, *, /, %, **).
🧮 Appel de calculate(expression='12 * (3 + 4)') :
12 * (3 + 4) = 84$ pytest -v
tests/test_calculate.py::TestCalculateNominal::test_addition PASSED
tests/test_calculate.py::TestCalculateNominal::test_power PASSED
tests/test_calculate.py::TestCalculateSecurity::test_rejects_function_calls PASSED
tests/test_calculate.py::TestCalculateSecurity::test_rejects_attribute_access PASSED
tests/test_server.py::test_registered_tools PASSED
...
21 passed in 0.49sEngineering notes
A few things worth calling out for anyone reviewing this code:
Security-conscious tool design.
calculatedoesn't useeval(). It parses the expression into a Python AST and walks a restricted whitelist of node types (ast.BinOp,ast.UnaryOp, numeric constants), so arbitrary code execution isn't possible even though the input is a raw string. Covered by dedicated security tests intests/test_calculate.py(rejecting function calls, attribute access, name lookups, etc.).Default environment isolation. The MCP SDK does not forward the parent process's full environment to spawned servers by default — only a minimal safe subset (
get_default_environment()). Servers that need network access (likeget_weather, viahttpx) needenvpassed explicitly. This tripped up the first version of this project and is documented here so it doesn't trip up the next person.Tests don't require a live subprocess.
tests/test_server.pyexercises the server's tool registration and schemas directly through theFastMCPinstance (mcp.list_tools()), not by spawning a real stdio subprocess — faster and more deterministic for CI.
Connecting to Claude Desktop
To use server.py as a real MCP server inside Claude Desktop, add it to
your claude_desktop_config.json:
{
"mcpServers": {
"mcp-toolkit-demo": {
"command": "python3",
"args": ["/absolute/path/to/mcp-toolkit/server.py"]
}
}
}Restart Claude Desktop and the calculate / get_weather tools become
available in conversation.
License
MIT — see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA minimal, production-ready MCP server with a simple addition calculator tool that demonstrates integration with the Model Context Protocol.111MIT
- -license-quality-maintenanceA basic Model Context Protocol server implementation that demonstrates core MCP functionality including tools and resources. Provides weather alerts through the Weather API and serves as a learning example for MCP development.
- Alicense-qualityDmaintenanceThis MCP server provides tools like weather lookup and follows the Model Context Protocol for tool calling, resource sharing, and prompt templates.270MIT
- Flicense-qualityCmaintenanceA proof-of-concept MCP server that enables LLMs to read local text files and fetch real-time weather data through external tools.
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server for GLM chat completions using Zhipu AI models via AceDataCloud
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mtmultiservicesllc-jpg/mcp-toolkit'
If you have feedback or need assistance with the MCP directory API, please join our Discord server