This project has been archived by its maintainers, and is no longer receiving any updates.
FastestMCP
Generate production-ready MCP servers and clients in seconds.
👋 Quick Start
Install
# Recommended: uv (modern, fast)
uv add fastestmcp
# Alternative: pip
pip install fastestmcp
Create Your First Server
from fastestmcp import Server
app = Server("my-app")
@app.tool
def hello(name: str):
return f"Hello {name}!"
app.run()
That's it! Your MCP server is ready.
�️ CLI Usage
Generate servers instantly:
# Weather server
fastestmcp server --template weather --name weather-app
# File organizer
fastestmcp server --template file-organizer --name file-manager
# Custom server
fastestmcp server --name custom --tools 3 --resources 2
🔗 Connect to AI Agents
Add your server to your MCP configuration so AI agents can use it:
For Claude Desktop
Create or update ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"my-app": {
"command": "python",
"args": ["/path/to/your/server.py"]
}
}
}
For VS Code
Create or update .vscode/mcp.json in your workspace:
{
"mcpServers": {
"my-app": {
"command": "python",
"args": ["/path/to/your/server.py"]
}
}
}
For Other MCP Clients
Most MCP clients look for a mcp.json file in:
~/.mcp.json(global)./mcp.json(project-specific)- Or their own configuration location
Example configuration:
{
"mcpServers": {
"fastestmcp-server": {
"command": "python",
"args": ["server.py"],
"cwd": "/path/to/your/project"
}
}
}
Restart your MCP client after updating the configuration!
� Installation Options
uv (Recommended - Modern Python)
uv add fastestmcp
Global Install
pip install fastestmcp
From Source
git clone https://github.com/orchestrate-solutions/fastestmcp.git
cd fastestmcp
uv run python -m fastestmcp.cli --help
🎨 Examples
Basic Tool Server
from fastestmcp import Server
app = Server("calculator")
@app.tool
def add(a: int, b: int):
return a + b
@app.tool
def multiply(a: int, b: int):
return a * b
app.run()
Component-Based Server
from fastestmcp import Server, WebScraper, FileSystem
app = Server("content-manager")
app.add_component(WebScraper(urls=["news.com"]))
app.add_component(FileSystem("/data"))
app.run()
📚 Documentation
🤝 Contributing
Open issues or PRs. Tests required for new features.
📄 License
Apache-2.0
Metadata
Release files for fastestmcp 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fastestmcp-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Release files / fastestmcp-1.0.3-py3-none-any.whl
| Download URL | fastestmcp-1.0.3-py3-none-any.whl |
|---|---|
| Size | 69.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ab7b15b2ac1ec229d8dde7f29db53af7959c59a8e89619121a8731d49577c85
|
|
BLAKE2b-256 checksum How to use checksums |
bfaf1edbd5f30354ca3a1dae7edb6d5fe908ccb55feb5aff392cefa7a42441d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Security for fastestmcp 1.0.3
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.