Back to Home
anirbanbasu icon

pymcp

Verified Safe

by anirbanbasu

Overview

A modular Model Context Protocol (MCP) server template in Python, providing diverse tools like web search, password generation, and mathematical functions, designed for extensibility and integration with FastMCP clients.

Installation

Run Command
uv run pymcp

Security Notes

The server primarily uses standard Python libraries and the FastMCP framework. No direct use of `eval`, `exec`, or other obvious code injection vulnerabilities were found. It uses `secrets` for password generation, which is good practice. The `DDGS` library for web search involves external network requests, which is an inherent, but managed, risk. The `DDGS_PROXY` environment variable allows proxy configuration for these requests, assuming a trusted server configuration. CORS configuration (`ASGI_CORS_ALLOWED_ORIGINS`) defaults to `*`, which is explicitly noted in the code and documentation as insecure for production environments and should be restricted. The implementation of middleware for argument stripping and metadata addition appears robust. Overall, for an example/template server, the security practices are reasonable, with explicit warnings for production deployment considerations.

Similar Servers

Stats

Interest Score34
Security Score8
Cost ClassMedium
Avg Tokens350
Stars4
Forks1
Last Update2025-12-05

Tags

MCP ServerPythonFastMCPDeveloper ToolsAPI Template