fastapi-mcpfastapimcp

Mounts FastAPI-MCP onto an existing FastAPI application so agents can call MCP tools exposed via authenticated routes while preserving their schema definitions.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "fastapi-mcpfastapimcp" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-ccefd6ba3d5fb7e75a2e26c6277467698e336880852616c9667bd342453938af. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/expose-fastapi-routes-as-mcp-tools-with-fastapi-mcp before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Mounts FastAPI-MCP onto an existing FastAPI application so agents can call MCP tools exposed via authenticated routes while preserving their schema definitions.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Software, accounts and paid services
Python 3.10+, FastAPI application, fastapi-mcp package, MCP-capable client
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "使用 FastAPI-MCP 将 FastAPI 路由暴露为 MCP 工具"
slug: "expose-fastapi-routes-as-mcp-tools-with-fastapi-mcp"
version: "1.0.0"
displayName: "使用 FastAPI-MCP 将 FastAPI 路由暴露为 MCP 工具"
summary: "将 FastAPI-MCP 挂载到现有的 FastAPI 应用程序上,以便代理可以调用经过身份验证的路由支持的 MCP 工具,并保留其模式。"
license: "MIT"
description: "将 FastAPI-MCP 挂载到现有的 FastAPI 应用程序上,以便代理可以调用经过身份验证的路由支持的 MCP 工具,并保留其模式。"
github_stars: 11836
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
publisher_type: "individual"
category: "Integrations & Connectors"
framework: "MCP"
tool_ecosystem:
  github_repo: "1991513ccie-png/skills"
  github_stars: 11836

使用 FastAPI-MCP 将 FastAPI 路由暴露为 MCP 工具

Mount FastAPI-MCP on an existing FastAPI app so agents can call authenticated route-backed MCP tools with preserved schemas.

Prerequisites

Python 3.10+, FastAPI application, fastapi-mcp package, MCP-capable client

Installation

Use the upstream install or setup path that matches your environment:

  • uv add fastapi-mcp
  • Alternatively, you can install with pip:
  • pip install fastapi-mcp

Requirements and caveats from upstream:

  • Python Versions
  • We recommend using uv, a fast Python package installer:
  • python

Basic usage or getting-started notes:

Documentation

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 提供 FastAPI 与 MCP 生态系统的集成方案,解决开发者实际集成需求
  • 功能定位清晰,面向有明确技术需求的开发者群体
Trigger Precision85/100

Highlights

  • 触发词精准完整,包含核心关键词 'FastAPI-MCP'、'MCP 工具'
  • description 内容完整,边界清晰,不易产生歧义
Structure and Standards70/100

Areas to improve

  • 缺少详细的使用示例和步骤说明 Reported severity: Minor

    文档提供了基本结构但缺少端到端的完整示例和详细步骤划分

    Recommendation: 建议添加具体的使用示例,包括代码片段和配置说明

Highlights

  • frontmatter 完整,包含必要的元数据信息
  • 文档结构基本清晰,有合理的章节划分
Execution Reliability75/100

Areas to improve

  • 缺少错误处理和异常场景说明 Reported severity: Minor

    文档提供了安装命令但缺少常见错误的处理方法和异常场景的应对策略

    Recommendation: 建议添加常见问题的排查指南和错误处理建议

Highlights

  • 工具来源明确,提供了 GitHub 仓库链接和官方文档地址
  • 安装命令清晰,支持多种安装方式(uv 和 pip)
Evidence Verifiability (mean of the first four)76/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 34
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • docs.astral.sh
  • fastapi-mcp.tadata.com
  • github.com
  • img.shields.io
  • pypi.org
  • raw.githubusercontent.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Python 3.10+, FastAPI application, fastapi-mcp package, MCP-capable client

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.