fastmcp-forge
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.toolDecorator & Schema Inference: Introspects function signatures (includingOptional[T],list[T],dict[K, V], andfrom __future__ import annotations) into JSON Schema definitions.- Built-in MCP Server & CLI Scaffolder: Run
fastmcp-forge new <name>from the terminal or connectfastmcp-forgedirectly to an MCP client to callscaffold_projectandvalidate_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.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fastmcp_forge-2.0.1.tar.gz | 17.4 kB | Without provenance | Details for fastmcp_forge-2.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fastmcp_forge-2.0.1-py3-none-any.whl | Python 3 | none | any | Details for fastmcp_forge-2.0.1-py3-none-any.whl |
Total release size: 32.2 kB
Release files / fastmcp_forge-2.0.1.tar.gz
| Download URL | fastmcp_forge-2.0.1.tar.gz |
|---|---|
| Size | 17.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9273a9452cb475a72f0248a32f0efeb8be9a4d4dffaf407264554b76a4078376
|
|
BLAKE2b-256 checksum How to use checksums |
988e467cd500acf6f4c79d638de62c7f082c5bca94d24fccc35703c78e643e4e
|
| 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.1-py3-none-any.whl
| Download URL | fastmcp_forge-2.0.1-py3-none-any.whl |
|---|---|
| Size | 14.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bfd7151dbf42895c153883ba6d18b476cc2925a3e751efc13d853fd04f5d9f71
|
|
BLAKE2b-256 checksum How to use checksums |
f0a9ef2e444b637fa36fb5b3e58fd5eb4898a9891b27d040279fb4662c7472a1
|
| 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.1
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.