
fastapi mcp
fastapi-mcp
Repository Info
About This Server
fastapi-mcp
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Pokemon API
A fun API for Pokemon enthusiasts built with FastAPI and the PokeAPI.
Features
This API provides several endpoints to access Pokemon data:
- Get Pokemon Details: Get detailed information about a specific Pokemon
- Compare Pokemon: Compare stats, types, and attributes of multiple Pokemon
- Legendary Pokemon: Get a list of all legendary Pokemon
- Top Pokemon: Get the top Pokemon based on base stat total
- Trainer Pokemon: Get Pokemon associated with famous trainers like Ash Ketchum
- Regional Pokemon: Get Pokemon from specific regions (Kanto, Johto, etc.)
- Top Regional Pokemon: Get the top Pokemon from each region
Installation
- Clone the repository
- Install dependencies:
pip install -e .
Usage
Run the server:
python main.py
The API will be available at http://localhost:8000
API Endpoints
Get Pokemon Details
GET /pokemon/{name_or_id}
Example: GET /pokemon/pikachu or GET /pokemon/25
Compare Pokemon
GET /pokemon/compare?pokemon_names=pikachu&pokemon_names=charizard
Compare between 2-6 Pokemon at once.
Legendary Pokemon
GET /pokemon/legendary
Optional query parameters:
limit: Number of Pokemon to return (default: 20)offset: Pagination offset (default: 0)
Top Pokemon
GET /pokemon/top
Optional query parameters:
limit: Number of top Pokemon to return (default: 10)
Trainer Pokemon
GET /pokemon/trainer/{trainer_name}
Available trainers: ash, misty, brock, gary, lance, cynthia
Example: GET /pokemon/trainer/ash
Regional Pokemon
GET /pokemon/region/{region_name}
Available regions: kanto, johto, hoenn, sinnoh, unova, kalos, alola, galar
Optional query parameters:
limit: Number of Pokemon to return (default: 20)offset: Pagination offset (default: 0)
Top Regional Pokemon
GET /pokemon/region/{region_name}/top
Optional query parameters:
limit: Number of top Pokemon to return (default: 5)
Documentation
Interactive API documentation is available at http://localhost:8000/docs when the server is running.
Quick Start
Clone the repository
git clone https://github.com/debsouryadatta/fastapi-mcpInstall dependencies
cd fastapi-mcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.