Skip to main content

fastmcp-forge (v2.0.0)

PyPI version License: MIT Support on Ko-fi

100% Free & Open Source (MIT): All features, proxy rotation, migration simulation, Docker stacks, and recipes are completely unlocked. Support open development on Ko-fi.

License: MIT Python 3.10+ MCP Compliant

FastMCP Forge is an ergonomic framework and CLI scaffolding engine that enables Python developers to build, test, and package compliant Model Context Protocol (MCP) servers in seconds.


Run without cloning

uvx --from git+https://github.com/johannschiffer/fastmcp-forge fastmcp-forge

Claude Desktop / Cursor config entry:

{
  "mcpServers": {
    "fastmcp-forge": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/johannschiffer/fastmcp-forge",
        "fastmcp-forge"
      ]
    }
  }
}

CI

⚡ The Problem: MCP Boilerplate Burnout

In 2026, every AI developer is building MCP servers to connect tools to Claude Desktop, Cursor, Windsurf, and Antigravity. However, writing raw JSON-RPC 2.0 handlers from scratch requires:

  • Manually parsing JSON schemas for tool arguments.
  • Handling error codes (-32600, -32601, -32602, -32000).
  • Managing sys.stdin and sys.stdout stream buffers.
  • Writing test harnesses to mock agent tool invocations.

FastMCP Forge gives you an intuitive @app.tool decorator that introspects function signatures, infers types, generates valid schemas, and creates automated test suites instantly.


🛠️ Code Example: Build an MCP Server in 10 Lines

from fastmcp_forge.server import FastMCP

app = FastMCP(name="math-mcp", version="1.0.0")

@app.tool(description="Multiply two numbers safely")
def multiply(a: float, b: float) -> float:
    return a * b

if __name__ == "__main__":
    app.run_stdio()

🚀 CLI Project Scaffolder

Generate a full production-ready project with tests in 1 second:

python -m fastmcp_forge.cli new analytics-mcp

Output:

[OK] Created new FastMCP project 'analytics-mcp'
Generated files:
  - server.py
  - tests/test_server.py
  - README.md
  - requirements.txt

🖥️ Client Configuration

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "my-server": {
      "command": "python",
      "args": ["server.py"],
      "cwd": "/path/to/my-server"
    }
  }
}

💎 Need Enterprise Remote Deployment? Upgrade to FastMCP Forge Pro

Deploying MCP servers as remote team microservices, behind authentication proxies, or in production clouds?

Feature v1.0 (Legacy) v2.0 (Open Source)
@tool Schema Introspection ✅ ✅
JSON-RPC 2.0 stdio Transport ✅ ✅
CLI Project Scaffolding ✅ ✅
Dual Transport: stdio + Remote SSE HTTP ❌ ✅
Security & Auth Middleware (API Keys & Bearer Tokens) ❌ ✅
Token Bucket Rate Limiter ❌ ✅
Structured JSON Logs with Correlation IDs ❌ ✅
Multi-Stage Docker & Compose ❌ ✅
Full Pytest Suite & Enterprise Architecture Blueprint ❌ ✅

Solución Enterprise (Genesis Suite)

Para despliegues en producción y cargas intensivas con bypass de rate limits, soporte multi-tenant y configuraciones Docker precompiladas:

  • Bypass de Rate Limits & IP Rotation: Scaffolder para servidores MCP de nivel empresarial con soporte SSE, stdio y middleware de autenticación.
  • Soporte Multi-Tenant & RBAC: Control de accesos granular, gestión de secretos y auditoría criptográfica.
  • Docker Compose Stacks: Contenedores precompilados y configuraciones listas para producción con orquestación autónoma.

📄 License

MIT License. See LICENSE for details.

VPS hosting that work well with FastMCP Forge. Some links are referral links.

Genesis MCP Ecosystem

Module What it does Repo
CrawlEngine MCP Anti-bot web scraping, clean Markdown, proxy rotation and TLS evasion GitHub
BrowserBridge MCP Deterministic headless browser automation with cryptographic action receipts GitHub
PgSafe MCP Zero-trust PostgreSQL/SQLite guard, live PII masking, zero-downtime migration checks GitHub
OmniBridge MCP Multi-channel notification and webhook bus with a persistent SQLite WAL queue GitHub
SysFlow MCP Safe Linux administration plane: systemd, port audit, isolated execution GitHub
FastMCP Forge (this repo) Production MCP server scaffolder: stdio, SSE and auth middleware GitHub

Live config builder | GitHub Profile | Support on Ko-fi ☕

Metadata

Release files for fastmcp-forge 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastmcp-forge 2.0.0
File Size Uploaded Provenance Actions
fastmcp_forge-2.0.0.tar.gz 15.7 kB Without provenance Details for fastmcp_forge-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fastmcp-forge 2.0.0
File Interpreter ABI Platform Actions
fastmcp_forge-2.0.0-py3-none-any.whl Python 3 none any Details for fastmcp_forge-2.0.0-py3-none-any.whl

Total release size: 28.6 kB

Release files / fastmcp_forge-2.0.0.tar.gz

Download URL fastmcp_forge-2.0.0.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
152f8a4dd066327632680619be1bf04a0631273df8da934a69ab822b87c15317
BLAKE2b-256 checksum
How to use checksums
c963562b73e6fc04b1b7047225e75b67dbc7eebc014628ac9d1076e9291674b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / fastmcp_forge-2.0.0-py3-none-any.whl

Download URL fastmcp_forge-2.0.0-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e9a5fdb6e758f93185a34a13bf1d6d57f4709cef8a8abbe3d811c7b5c22b5cb
BLAKE2b-256 checksum
How to use checksums
b0592ea768b2c2a79913ec935f023bef1405b6f7006a42c4771b865ffb7d7fc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for fastmcp-forge 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page