drio
Open app

Fastapi Mcp Server

Source

FastAPI MCP Server は、FastAPI を用いた MCP (Model Context Protocol) サーバーです。 このプロジェクトは、各種ツールやデータソースへのアクセスを統一的に実現することを目指します。

Catalog onlyCatalog onlySTDIO

Overview

FastAPI MCP Server is a server built using FastAPI that implements the Model Context Protocol (MCP). This project aims to provide a unified access point to various tools and data sources.

To use the FastAPI MCP Server, clone the repository, set up a virtual environment, install the dependencies, and start the server using the provided command. Access the API documentation via your browser at http://localhost:8000/docs.

  • FastAPI-based: Provides fast and simple API endpoints. - MCP protocol implementation: Offers a unified interface for tool calls using JSON-RPC. - Unified access: Enables consistent access to various tools and data sources.
  1. Integrating AI assistants like Claude Code with various tools.
  2. Providing a backend for applications that require access to multiple data sources.
  3. Simplifying the development of applications that need to interact with different APIs.

Add to your AI client

Use these steps to connect Fastapi Mcp Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "fastapi-mcp-server-nishizukakoichi": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-fastapi-mcp-server-nishizukakoichi"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "fastapi-mcp-server-nishizukakoichi": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-fastapi-mcp-server-nishizukakoichi"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "fastapi-mcp-server-nishizukakoichi": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-fastapi-mcp-server-nishizukakoichi"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "fastapi-mcp-server-nishizukakoichi": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-fastapi-mcp-server-nishizukakoichi"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "fastapi-mcp-server-nishizukakoichi": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-fastapi-mcp-server-nishizukakoichi"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "fastapi-mcp-server-nishizukakoichi": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-fastapi-mcp-server-nishizukakoichi"
      ]
    }
  }
}

FAQ

What is the MCP protocol?

The Model Context Protocol (MCP) is a protocol designed to provide a unified interface for accessing various tools and data sources.

How do I install FastAPI MCP Server?

Follow the installation instructions in the documentation, which include cloning the repository and installing dependencies.

Is FastAPI MCP Server open source?

Yes, FastAPI MCP Server is open source and licensed under the MIT License.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3354,"uuid":"84bc8159-856d-4877-a0c7-471426b2c970","name":"fastapi-mcp-server","title":"Fastapi Mcp Server","description":"FastAPI MCP Server は、FastAPI を用いた MCP (Model Context Protocol) サーバーです。 このプロジェクトは、各種ツールやデータソースへのアクセスを統一的に実現することを目指します。","avatar_url":"https://avatars.githubusercontent.com/u/138186304?v=4","created_at":"2025-03-19T02:37:57.231+00:00","updated_at":"2025-03-19T02:41:36.56+00:00","status":"created","author_name":"NishizukaKoichi","author_avatar_url":"https://avatars.githubusercontent.com/u/138186304?v=4","tags":"fastapi,mcp,server","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/NishizukaKoichi/fastapi-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"MIT license\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-03-19 01:15:53\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]