Skip to main content

fastmcp-forge

PyPI version CI License: MIT Python 3.10+ MCP Compliant

fastmcp-forge MCP server

FastMCP Forge is a zero-dependency Python framework, CLI project scaffolder, and MCP server for building and testing Model Context Protocol (2024-11-05) servers over stdio or authenticated SSE transports.

Features

  • @app.tool Decorator & Schema Inference: Introspects function signatures (including Optional[T], list[T], dict[K, V], and from __future__ import annotations) into JSON Schema definitions.
  • Built-in MCP Server & CLI Scaffolder: Run fastmcp-forge new <name> from the terminal or connect fastmcp-forge directly to an MCP client to call scaffold_project and validate_project.
  • Authenticated SSE Transport Handler: Constant-time API key and Bearer token verification (hmac.compare_digest), bounded session tracking with TTL expiration, and token-bucket rate limiting.

Quickstart

1. Run as an MCP Server (uvx)

{
  "mcpServers": {
    "fastmcp-forge": {
      "command": "uvx",
      "args": ["fastmcp-forge", "serve"]
    }
  }
}

Note: When invoked over a non-TTY pipe (uvx fastmcp-forge with no subcommand), fastmcp-forge automatically enters stdio MCP server mode.

Built-in MCP Tools

Tool Description
scaffold_project Generate a complete FastMCP server directory (server.py, tests/test_server.py, pyproject.toml, README.md, requirements.txt).
validate_project Parse and verify an existing FastMCP project directory for syntax and structure.

2. CLI Project Scaffolder

pip install fastmcp-forge
fastmcp-forge new analytics-mcp
fastmcp-forge validate ./analytics-mcp

3. Build a Custom Server in Python

from fastmcp_forge.server import FastMCP

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


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


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

Genesis MCP Ecosystem

Module Description Repository
CrawlEngine MCP HTTP web extraction to clean Markdown, JSON-LD parsing, and proxy rotation GitHub
BrowserBridge MCP Lightweight HTTP/DOM session automation with SHA-256 action receipts GitHub
PgSafe MCP Read-only PostgreSQL/SQLite query guard, PII masking, and dry-run mutations GitHub
OmniBridge MCP Multi-channel notification bus with SQLite retry queue GitHub
SysFlow MCP Linux systemd inspection, confined log tailing, and port auditing GitHub
FastMCP Forge Zero-dependency FastMCP framework, CLI scaffolder, and SSE middleware GitHub

Support

If you find this project useful, you can support maintenance on Ko-fi.

License

MIT (c) 2026 Johann Schiffer

Metadata

Release files for fastmcp-forge 2.1.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.1.0
File Size Uploaded Provenance Actions
fastmcp_forge-2.1.0.tar.gz 19.0 kB Without provenance Details for fastmcp_forge-2.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 34.9 kB

Release files / fastmcp_forge-2.1.0.tar.gz

Download URL fastmcp_forge-2.1.0.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
607d4b0958779bacba83e43b3a9ae2f8c28aa4838239bce4e1181b3d9d841af2
BLAKE2b-256 checksum
How to use checksums
a8534d57a8230c62f7d56472f2129ad5db82ab70d4bf5c074c69c933c24c4852
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

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

Download URL fastmcp_forge-2.1.0-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d36f4afbd30d6f2635e6afa4ade3d100c7d1356cf47c414edf93492b9401087a
BLAKE2b-256 checksum
How to use checksums
00789df744a1f74e5d91bb3c648c9dd731847f77d5f08956633bd88b675dbbc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for fastmcp-forge 2.1.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