Cover image
Try Now
2025-04-14

3 years

Works with Finder

7

Github Watches

2

Github Forks

7

Github Stars

Fastn Server

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.

Getting Started

Package Installation (Recommended)

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:

  • On macOS/Linux: which fastn-server
  • On Windows: where fastn-server

Features

  • Integrated platform support - Use services like Slack, Notion, HubSpot, and many more through the Fastn server after completing the simple setup
  • Logging support - Comprehensive logging system
  • Error handling - Robust error management for various scenarios

Step-by-Step Setup Guide

Step 1: Fastn Setup

  1. Login to your Fastn account
  2. Go to "Connectors" from the left sidebar
  3. Activate the service(s) you want to use by clicking on activate.
  4. Go to "Settings" from the left sidebar
  5. Click on "Generate API Key" and save it somewhere locally (e.g., in a notepad)
  6. Click on the copy button that exists on the top bar (left side of your profile)
  7. Copy your Workspace ID and save it as well
  8. All setup from Fastn is now complete

Step 2: Server Setup

Option 1: Use Package Installation (Recommended)

See the "Package Installation" section above.

Option 2: Manual Setup

Prerequisites

  • Python 3.10 or higher

Quick Start

macOS

# 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 

Windows

# 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 

Step 3: Integration with AI Assistants

For Package Installation (Option 1)

  1. Find the path to your installed fastn-server:

    • On macOS/Linux: which fastn-server
    • On Windows: where fastn-server
  2. Configure your AI assistant with the path from step 1.

For Manual Installation (Option 2)

Integration with Claude On Mac OS
  1. Open the Claude configuration:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
  1. Add the following configuration (replace placeholders with your actual values):
{
    "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
  1. Open Cursor settings
  2. Click on "MCP" in the settings menu
  3. Click on "Add New"
  4. Add a name for your server (e.g., "fastn")
  5. Select "Command" as the type
  6. Add the following command (replace placeholders with your actual values):
/path/to/your/uv --directory /path/to/your/fastn-server run fastn-server.py --api_key YOUR_API_KEY --space_id YOUR_WORKSPACE_ID

Detailed Integration Instructions

For Claude

  1. Open the Claude configuration file:

    • Windows: notepad "%APPDATA%\Claude\claude_desktop_config.json" or code "%APPDATA%\Claude\claude_desktop_config.json"
    • Mac: open -a TextEdit ~/Library/Application\ Support/Claude/claude_desktop_config.json or code ~/Library/Application\ Support/Claude/claude_desktop_config.json
  2. Add the appropriate configuration JSON based on your installation method.

For Cursor

  1. Open Cursor settings
  2. Click on "MCP" in the settings menu
  3. Click on "Add New"
  4. Add a name for your server (e.g., "fastn")
  5. Select "Command" as the type
  6. Use the appropriate configuration based on your installation method

Troubleshooting

Package Structure Error

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:

  1. Make sure pyproject.toml has the wheel configuration:
[tool.hatch.build.targets.wheel]
packages = ["."]
  1. Then install dependencies:
uv pip install "httpx>=0.28.1" "mcp[cli]>=1.2.0"
  1. Run the server:
uv run fastn-server.py --api_key YOUR_API_KEY --space_id YOUR_SPACE_ID

Logging

Logs are output with timestamp, level, and message in the following format:

%(asctime)s - %(levelname)s - %(message)s

Support

For questions, issues, or feature requests, please visit:

License

This project is licensed under the terms included in the LICENSE file.

相关推荐

  • av
  • Führen Sie mühelos LLM -Backends, APIs, Frontends und Dienste mit einem Befehl aus.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 llm 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Zusammenfassung der weltbesten LLM -Ressourcen.

  • 1Panel-dev
  • 🔥 1Panel bietet eine intuitive Weboberfläche und einen MCP -Server, um Websites, Dateien, Container, Datenbanken und LLMs auf einem Linux -Server zu verwalten.

  • rulego
  • ⛓️Rugele ist ein leichter, leistungsstarker, leistungsstarker, eingebetteter Komponenten-Orchestrierungsregel-Motor-Rahmen für GO.

  • lasso-security
  • Ein Plugin-basiertes Gateway, das andere MCPs orchestriert und es Entwicklern ermöglicht, auf IT-Agenten zu bauen.

  • Byaidu
  • PDF wissenschaftliche Papierübersetzung mit erhaltenen Formaten - 基于 ai 完整保留排版的 pdf 文档全文双语翻译 , 支持 支持 支持 支持 google/deeptl/ollama/openai 等服务 提供 cli/gui/mcp/docker/zotero

  • hkr04
  • Leichtes C ++ MCP (Modellkontextprotokoll) SDK

  • sigoden
  • Erstellen Sie einfach LLM -Tools und -Argarten mit einfachen Bash/JavaScript/Python -Funktionen.

  • RockChinQ
  • 😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 qq / 微信(企业微信、个人微信) / 飞书 / 钉钉 / diskord / telegram / slack 等平台 | 支持 Chatgpt 、 Deepseek 、 Diffy 、 Claude 、 Gemini 、 xai 、 ppio 、 、 ulama 、 lm Studio 、阿里云百炼、火山方舟、 siliconflow 、 qwen 、 mondshot 、 chatglm 、 sillytraven 、 mcp 等 llm 的机器人 / agent | LLM-basierte Instant Messaging Bots-Plattform, unterstützt Zwietracht, Telegramm, Wechat, Lark, Dingtalk, QQ, Slack

    Reviews

    3.2 (5)
    Avatar
    user_s1vJRqCW
    2025-04-25

    As a loyal user of mcp-fastn, I must say this product created by fastnai is incredibly efficient and user-friendly. The quick access via the product start URL and the warm welcome message truly enhance the overall experience. It's evident that a lot of thought went into making this tool accessible and valuable for users. Highly recommend!

    Avatar
    user_jrf0Xw9d
    2025-04-25

    As a dedicated user of mcp applications, I find the mcp-fastn by fastnai to be an exceptional addition to the lineup. Its user-friendly interface and efficient functionality have significantly streamlined my workflow. The performance is unparalleled, making my tasks quicker and more manageable. Highly recommend!

    Avatar
    user_fiNDIPWU
    2025-04-25

    I’ve been using MCP-Fastn for a few months now and it's simply incredible. Developed by Fastnai, this application has revolutionized my workflow with its seamless integration and user-friendly interface. It's swift, reliable, and has significantly improved my productivity. Highly recommend to anyone looking for a robust and efficient solution!

    Avatar
    user_k162kiAk
    2025-04-25

    As an avid user of mcp-fastn, I am thoroughly impressed by its efficiency and speed. Created by fastnai, this product has significantly enhanced my application workflows. It's intuitive and user-friendly, making it accessible even for those who aren't very tech-savvy. Highly recommend giving it a try if you’re looking to optimize your processes!

    Avatar
    user_FgiPgBaa
    2025-04-25

    I've been using mcp-fastn for a while now, and it has completely transformed my workflow. The product, developed by fastnai, is incredibly user-friendly and efficient. The seamless performance and robust features have significantly enhanced my productivity. Highly recommend it to anyone looking to optimize their tasks!