Skip to main content

Generate production-ready MCP servers and clients in seconds with the FastestMCP CLI

Project description

FastestMCP

Generate production-ready MCP servers and clients in seconds.

uv Python 3.10+ License: Apache-2.0

👋 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastestmcp-1.0.3-py3-none-any.whl (69.9 kB view details)

Uploaded Python 3

File details

Details for the file fastestmcp-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: fastestmcp-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 69.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for fastestmcp-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2ab7b15b2ac1ec229d8dde7f29db53af7959c59a8e89619121a8731d49577c85
MD5 867e68dbba8561a94fcf22d3bfc1cb51
BLAKE2b-256 bfaf1edbd5f30354ca3a1dae7edb6d5fe908ccb55feb5aff392cefa7a42441d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page