pymcp
Verified Safeby anirbanbasu
Overview
A template repository for developing Model Context Protocol (MCP) servers in Python, demonstrating various tools, resources, and prompts.
Installation
uv run pymcpEnvironment Variables
- ASGI_CORS_ALLOWED_ORIGINS
- FASTMCP_HOST
- FASTMCP_PORT
- PYMCP_LOG_LEVEL
- MCP_SERVER_TRANSPORT
- RESPONSE_CACHE_TTL
- DDGS_PROXY
Security Notes
The server's code is well-structured and uses FastMCP, which generally promotes secure practices. No 'eval' or obvious malicious patterns are present. It correctly handles input validation for tools like password generation and permutations. Network risks include the `text_web_search` tool making external requests via `ddgs`, and while it supports proxy configuration, reliance on external services always carries some inherent risk. A critical note is the default `ASGI_CORS_ALLOWED_ORIGINS` allowing all origins (`*`) when using HTTP transports; the README correctly advises overriding this in production for security, but it's a default configuration to be aware of. File I/O for logo resources is limited to specific, known files.
Similar Servers
mcp-python-starter
A feature-complete Model Context Protocol (MCP) server template in Python for developing AI applications and agents.
mcp_server
This server template provides a foundation for building Model Context Protocol (MCP) servers to integrate with AI assistants and other MCP clients, offering tools for GitHub, Microsoft Graph, weather data, and JWT decoding.
mcp-server
This server exposes a set of tools and resources, including arithmetic operations, web browser control, data retrieval, and dynamic greetings, accessible via the MCP protocol over HTTP.
mcp-toolbox
Provides a set of utility tools (format conversion, text processing, network checks) exposed via the Model Context Protocol (MCP) for LLMs to consume.