MCP_Server_Practice
0
The MCP Server Practice project is a FastAPI-based server that showcases the integration of AI tools for various functionalities such as math calculations, web search, audio generation, and weather data fetching. It is designed to demonstrate practical implementations using FastMCP and OpenAI technologies.
π§ MCP Server Practice
A modular FastAPI-based server powered by FastMCP, showcasing practical implementations of AI tools, math operations, web search, audio response generation, and external API integration.
π Core Functionalities
π§ Math Utilities
- Math operations like addition and multiplication.
π€οΈ Weather API Integration
- Fetch live weather data using WeatherAPI.
π Web Search
- Perform web search using OpenAIβs tools.
π Audio Response Generation
- Convert text to spoken audio using OpenAIβs capabilities.
πββοΈ Custom Resource Example
- Provides personalized greeting strings.
π οΈ Built With
- FastMCP, FastAPI, OpenAI, WeatherAPI, and Python.
π» How It Works
- Tools are defined using
@mcp.tool()
and the server can run with defined transports.