Back to Home
chrishayuk icon

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

Run Command
uv run examples/01_minimal.py

Security 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

Stats

Interest Score0
Security Score3
Cost ClassMedium
Avg Tokens500
Stars0
Forks0
Last Update2025-11-27

Tags

MCPJSON-RPCLLM IntegrationReference ServerPython