fastapi_mcp

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

GitHub Stars

10,205

User Rating

Not Rated

Favorites

0

Views

89

Forks

795

Issues

94

Installation
Difficulty
Advanced
Estimated Time
20-45 minutes

Installation

Installation

Prerequisites

Python: 3.6 or higher
FastAPI: Latest version

Installation Steps

1. Install using uv

bash
uv add fastapi-mcp

2. Install using pip

bash
pip install fastapi-mcp

Troubleshooting

Common Issues

Issue: Module not found after installation Solution: Ensure that your Python environment is set up correctly.