
Fastn
STDIODynamic API-driven tool registration and execution platform integrated with AI services.
Dynamic API-driven tool registration and execution platform integrated with AI services.
The Fastn server is a powerful, scalable platform that enables dynamic tool registration and execution based on API definitions. It seamlessly integrates with services like Claude.ai and Cursor.ai, providing a unified server solution for a wide range of tasks. With its robust architecture, Fastn delivers exceptional performance and flexibility for real-time, API-driven operations.
The easiest way to install the Fastn server is using pip:
pip install fastn-mcp-server
After installation, you can run the server with:
fastn-mcp-server --api_key YOUR_API_KEY --space_id YOUR_SPACE_ID
When using the package installation, your configuration for AI assistants will look like:
macOS/Linux:
{ "mcpServers": { "fastn": { "command": "/path/to/fastn-mcp-server", "args": [ "--api_key", "YOUR_API_KEY", "--space_id", "YOUR_WORKSPACE_ID" ] } } }
Windows:
{ "mcpServers": { "fastn": { "command": "C:\\path\\to\\fastn-mcp-server.exe", "args": [ "--api_key", "YOUR_API_KEY", "--space_id", "YOUR_WORKSPACE_ID" ] } } }
To find the exact path of the installed fastn-server command:
which fastn-server
where fastn-server
See the "Package Installation" section above.
# Clone repository and navigate to directory git clone <your-repo-url> && cd fastn-server # Install UV, create virtual environment, and install dependencies in one go curl -LsSf https://astral.sh/uv/install.sh | sh && uv venv && source .venv/bin/activate && uv pip install -e . # Run server (specify platform with --platform flag) uv run fastn-server.py --api_key YOUR_API_KEY --space_id YOUR_SPACE_ID
# Clone repository and navigate to directory git clone <your-repo-url> && cd fastn-server # Install UV, create a virtual environment, and install dependencies # Option 1: Install UV using pip python -m pip install uv # Make sure to copy the installation path and add it to your Windows environment variables. # Option 2: Install UV using PowerShell powershell -c "irm https://astral.sh/uv/install.ps1 | iex" && uv venv && .venv\Scripts\activate && uv pip install -e . # Run server (specify platform with --platform flag) uv run fastn-server.py --api_key YOUR_API_KEY --space_id YOUR_SPACE_ID
Find the path to your installed fastn-server:
which fastn-server
where fastn-server
Configure your AI assistant with the path from step 1.
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
{ "mcpServers": { "fastn": { "command": "/path/to/your/uv", "args": [ "--directory", "/path/to/your/fastn-server", "run", "fastn-server.py", "--api_key", "YOUR_API_KEY", "--space_id", "YOUR_WORKSPACE_ID" ] } } }
/path/to/your/uv --directory /path/to/your/fastn-server run fastn-server.py --api_key YOUR_API_KEY --space_id YOUR_WORKSPACE_ID
Open the Claude configuration file:
notepad "%APPDATA%\Claude\claude_desktop_config.json"
or code "%APPDATA%\Claude\claude_desktop_config.json"
open -a TextEdit ~/Library/Application\ Support/Claude/claude_desktop_config.json
or code ~/Library/Application\ Support/Claude/claude_desktop_config.json
Add the appropriate configuration JSON based on your installation method.
If you encounter an error like this during installation:
ValueError: Unable to determine which files to ship inside the wheel using the following heuristics:
The most likely cause of this is that there is no directory that matches the name of your project (fastn).
Quick Fix:
pyproject.toml
has the wheel configuration:[tool.hatch.build.targets.wheel] packages = ["."]
uv pip install "httpx>=0.28.1" "mcp[cli]>=1.2.0"
uv run fastn-server.py --api_key YOUR_API_KEY --space_id YOUR_SPACE_ID
Logs are output with timestamp, level, and message in the following format:
%(asctime)s - %(levelname)s - %(message)s
For questions, issues, or feature requests, please visit:
This project is licensed under the terms included in the LICENSE file.