fastestmcp
by mo-mostafa-123
Overview
Framework and CLI tool for rapidly generating and developing modular MCP (Model Context Protocol) servers and clients, with capabilities for API integration, code generation, and component-based development.
Installation
cd docs/demos/demo_server && python main.pyEnvironment Variables
- MCP_TRANSPORT
- API_KEY
- PORT
- DEBUG
- MAX_CONNECTIONS
- TIMEOUT
Security Notes
`eval()` is used in a demo script (src/fastestmcp/demo.py) with an explicit warning about its dangers. A critical vulnerability exists in the `clone_git_repository` tool (src/server/stdio/app/tools.py), which allows a client to specify an arbitrary `target_directory`. This enables cloning a repository into any writable location on the server's file system, potentially leading to arbitrary file writes, overwriting system files, or placing executable code, if the server is exposed to untrusted input. Hardcoded 'demo-token' for authentication is present in `src/server/stdio/app/auth.py` for demonstration purposes.
Similar Servers
mcpm.sh
MCPM is a command-line tool for managing Model Context Protocol (MCP) servers, enabling discovery, installation, execution, sharing, and integration with various MCP clients.
template-mcp-server
Provides a CLI tool and template to quickly get started building a Model Context Protocol (MCP) server using FastMCP, supporting both stdio and HTTP transports.
zeromcp
A minimal, pure Python Model Context Protocol (MCP) server for exposing tools, resources, and prompts via HTTP/SSE and Stdio transports.
mcp-use-cli
An interactive command-line interface (CLI) tool for connecting to and interacting with Model Context Protocol (MCP) servers using natural language, acting as an AI client that orchestrates LLM responses with external tools.