LogoAISecKit
icon of fastapi_mcp

fastapi_mcp

Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!

Introduction

FastAPI-MCP

FastAPI-MCP is a powerful tool that allows you to expose your FastAPI endpoints as Model Context Protocol (MCP) tools easily and efficiently. It integrates seamlessly with your existing FastAPI application, providing built-in authentication and native support for FastAPI dependencies.

Key Features:
  • Authentication Built-In: Leverage your existing FastAPI authentication mechanisms.
  • FastAPI-Native: More than just a converter; it is designed to work seamlessly with FastAPI.
  • Zero/Minimal Configuration: Simple integration by just pointing it to your FastAPI app.
  • Preserve Request and Response Models: Maintain schemas and documentation just like in Swagger.
  • Flexible Deployment: Mount your MCP server to your FastAPI app or deploy it separately.
  • ASGI Transport: Direct communication via FastAPI's ASGI interface for efficient processing.
Benefits:
  • Efficient Development: Minimizes friction in adding MCP capabilities to your existing FastAPI services.
  • Unified Infrastructure: No need for separate running environments for your API and MCP server.

Join the community for support and collaboration, and start utilizing FastAPI-MCP to enhance your application's capabilities!

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates