chuk-mcp-server-reference
by chrishayuk
Overview
Reference implementation for Model Context Protocol (MCP) servers and clients, demonstrating all features of the MCP specification.
Installation
uv run examples/01_minimal.pySecurity Notes
The `calculate` tool (in examples/11_full_server.py, 12_icons_metadata.py, 14_spec_2025_11_25.py) uses `eval()` to execute mathematical expressions. While a `safe_dict` is provided to limit its scope, `eval()` with user-provided input is an inherently dangerous function that can lead to arbitrary code execution if not perfectly sanitized or if vulnerabilities in the `safe_dict` setup are discovered. This constitutes a significant security risk for a production server.
Similar Servers
fastmcp
An ergonomic, extensible, and high-performance framework for building and interacting with Model Context Protocol (MCP) servers and clients. It facilitates modular AI component development and robust integration with external APIs via OpenAPI specifications.
tmcp
Build Model Context Protocol (MCP) servers for AI agents to interact with external tools and data sources, enabling LLMs to access context and perform actions.
zeromcp
A minimal, pure Python Model Context Protocol (MCP) server for exposing tools, resources, and prompts via HTTP/SSE and Stdio transports.
mcp-servers
Provides an MCP server for Qdrant vector database integration, enabling AI agents to perform semantic search, store documents, and manage collections with advanced multi-tenant filtering capabilities.