by fastnai
mcp-fastn is a powerful and scalable server that acts as a unified API for over 1,000 tools, actions, and workflows. It enables dynamic tool registration and execution, seamlessly integrating with AI services for real-time, API-driven operations.
mcp-fastn is a powerful and scalable server that acts as a unified API for over 1,000 tools, actions, and workflows. It enables dynamic tool registration and execution based on API definitions and seamlessly integrates with AI services like Claude.ai and Cursor.ai. It features built-in authentication and monitoring, providing a robust solution for real-time, API-driven operations.
There are two primary ways to use mcp-fastn:
pip install fastn-mcp-server
fastn-mcp-server --api_key YOUR_API_KEY --space_id YOUR_SPACE_ID
fastn-mcp-server
command.git clone <your-repo-url> && cd fastn-server
uv
to create a virtual environment and install dependencies. For macOS:
curl -LsSf https://astral.sh/uv/install.sh | sh && uv venv && source .venv/bin/activate && uv pip install -e .
For Windows, follow the provided uv
installation and dependency installation steps.uv run fastn-server.py --api_key YOUR_API_KEY --space_id YOUR_SPACE_ID
uv
command, directory, and server script path along with your API key and space ID.Before running the server, ensure you have set up your Fastn account by activating desired services, generating an API key, and copying your Workspace ID from the Fastn platform.
pip install fastn-mcp-server
) or through a manual setup by cloning the repository and installing dependencies.fastn-mcp-server
within your AI assistant's settings, with slight variations depending on whether you used package or manual installation.ValueError
during installation related to package structure? Ensure your pyproject.toml
has the correct wheel configuration (packages = ["."]
under [tool.hatch.build.targets.wheel]
) and then install dependencies like httpx
and mcp[cli]
.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.
Integration with Claude On Mac OS
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"
]
}
}
}
Integration with Cursor
/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.
Please log in to share your review and rating for this MCP.