Skip to main content
Glama

Fastn Server

Official
by fastnai

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.

Features

  • Integrated platform support - Use services like Slack, Notion, HubSpot, and more through the Fastn server
  • Flexible authentication - Use either API key or tenant-based authentication
  • Comprehensive logging - Detailed logs for troubleshooting
  • Error handling - Robust error management for various scenarios

Prerequisites

  • Python 3.10 or higher

Installation Options

The easiest way to install the Fastn server is using pip:

pip install fastn-mcp-server

To find the exact path of the installed command:

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

Option 2: Manual Setup

# Clone repository and navigate to directory git clone <your-repo-url> && cd fastn-server # macOS/Linux: Install UV, create virtual environment, and install dependencies curl -LsSf https://astral.sh/uv/install.sh | sh && uv venv && source .venv/bin/activate && uv pip install -e . # Windows (PowerShell): Install UV, create a virtual environment, and install dependencies powershell -c "irm https://astral.sh/uv/install.ps1 | iex" && uv venv && .venv\Scripts\activate && uv pip install -e . # Install dependencies directly uv pip install "httpx>=0.28.1" "mcp[cli]>=1.2.0"

Fastn Account Setup

  1. Login to your Fastn account
  2. Go to "Connectors" from the left sidebar
  3. Activate the service(s) you want to use
  4. Go to "Settings" from the left sidebar
  5. Click on "Generate API Key" and save it (if using API Key auth)
  6. Copy your Workspace ID from the top bar

Running the Server

The server supports two authentication methods:

Authentication Method 1: API Key

# Package installation fastn-mcp-server --api_key YOUR_API_KEY --space_id YOUR_WORKSPACE_ID # Manual installation uv run fastn-server.py --api_key YOUR_API_KEY --space_id YOUR_WORKSPACE_ID

Authentication Method 2: Tenant-based

# Package installation fastn-mcp-server --space_id YOUR_WORKSPACE_ID --tenant_id YOUR_TENANT_ID --auth_token YOUR_AUTH_TOKEN # Manual installation uv run fastn-server.py --space_id YOUR_WORKSPACE_ID --tenant_id YOUR_TENANT_ID --auth_token YOUR_AUTH_TOKEN

Integration with AI Assistants

Claude Integration

  1. Open the Claude configuration file:
    • Windows: notepad "%APPDATA%\Claude\claude_desktop_config.json" or code "%APPDATA%\Claude\claude_desktop_config.json"
    • Mac: code ~/Library/Application\ Support/Claude/claude_desktop_config.json
  2. Add the appropriate configuration:
Using Package Installation
{ "mcpServers": { "fastn": { "command": "/path/to/fastn-mcp-server", "args": [ "--api_key", "YOUR_API_KEY", "--space_id", "YOUR_WORKSPACE_ID" ] } } }

Or with tenant authentication:

{ "mcpServers": { "fastn": { "command": "/path/to/fastn-mcp-server", "args": [ "--space_id", "YOUR_WORKSPACE_ID", "--tenant_id", "YOUR_TENANT_ID", "--auth_token", "YOUR_AUTH_TOKEN" ] } } }
Using Manual Installation

API Key authentication:

{ "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" ] } } }

Tenant authentication:

{ "mcpServers": { "fastn": { "command": "/path/to/your/uv", "args": [ "--directory", "/path/to/your/fastn-server", "run", "fastn-server.py", "--space_id", "YOUR_WORKSPACE_ID", "--tenant_id", "YOUR_TENANT_ID", "--auth_token", "YOUR_AUTH_TOKEN" ] } } }

Cursor Integration

  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 command based on your installation:
Using Package Installation

API Key authentication:

/path/to/fastn-mcp-server --api_key YOUR_API_KEY --space_id YOUR_WORKSPACE_ID

Tenant authentication:

/path/to/fastn-mcp-server --space_id YOUR_WORKSPACE_ID --tenant_id YOUR_TENANT_ID --auth_token YOUR_AUTH_TOKEN
Using Manual Installation

API Key authentication:

/path/to/your/uv --directory /path/to/your/fastn-server run fastn-server.py --api_key YOUR_API_KEY --space_id YOUR_WORKSPACE_ID

Tenant authentication:

/path/to/your/uv --directory /path/to/your/fastn-server run fastn-server.py --space_id YOUR_WORKSPACE_ID --tenant_id YOUR_TENANT_ID --auth_token YOUR_AUTH_TOKEN

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"

Support

License

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

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

API 定義に基づいて動的なツールの登録と実行を可能にし、Claude.ai や Cursor.ai などのサービスとのシームレスな統合を実現する MCP サーバー。

  1. はじめる
    1. パッケージのインストール(推奨)
  2. 特徴
    1. ステップバイステップのセットアップガイド
      1. ステップ1:Fastnのセットアップ
      2. ステップ2: サーバーのセットアップ
    2. 前提条件
      1. クイックスタート
        1. macOS
        2. ウィンドウズ
        3. ステップ3: AIアシスタントとの統合
        4. 詳細な統合手順
        5. トラブルシューティング
      2. ログ記録
        1. サポート
          1. ライセンス

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              An MCP server implementation that standardizes how AI applications access tools and context, providing a central hub that manages tool discovery, execution, and context management with a simplified configuration system.
              Last updated -
              12
              Python
              MIT License
            • -
              security
              F
              license
              -
              quality
              A flexible server that enables communication between AI models and tools, supporting multiple MCP servers and compatible with Claude, MCP Dockmaster, and other MCP clients.
              Last updated -
              32
              1
              TypeScript
            • A
              security
              F
              license
              A
              quality
              An MCP server that allows users to create custom tools on the fly by stitching together actions from multiple MCP tools into reusable routines.
              Last updated -
              4
              3
              1
              TypeScript
            • A
              security
              F
              license
              A
              quality
              An MCP-compatible server that exposes automated API tools to MCP clients like Claude Desktop or Postman, allowing AI assistants to interact with your selected APIs.
              Last updated -
              3
              JavaScript

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/fastnai/mcp-fastn'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server