MCP-Studio
A collection of MCP servers that provide mathematical operations and weather information tools, enabling AI models to perform calculations and access weather data through a standardized interface.
README
🤖 Model Context Protocol (MCP)
Overview
The Model Context Protocol (MCP) is an open standard that enables Artificial Intelligence (AI) models to securely communicate with external tools, applications, databases, APIs, and services through a standardized interface. It allows Large Language Models (LLMs) to access real-time information, execute functions, and interact with external systems beyond their built-in knowledge.
MCP separates AI reasoning from tool execution by providing a consistent protocol for exposing capabilities such as tools, resources, and prompts. This makes AI applications more modular, reusable, and easier to integrate with different services.
Key Components
🔹 Tools
Tools are executable functions that allow AI models to perform specific tasks such as mathematical calculations, weather retrieval, database queries, or API calls.
🔹 Resources
Resources provide structured information that AI models can read, including server metadata, documentation, configuration files, or datasets.
🔹 Prompts
Prompts are reusable templates that guide AI models in generating consistent and context-aware responses for various tasks.
Features
- Standardized communication between AI models and external systems
- Easy integration with APIs and third-party services
- Support for synchronous and asynchronous tools
- Modular architecture for scalable AI applications
- Secure interaction with external resources
- Extensible design for building custom AI assistants
🧮 Math MCP Server
Description
The Math MCP Server is an MCP-based application that provides mathematical operations as AI-accessible tools. It demonstrates how mathematical functions can be exposed through the Model Context Protocol, allowing AI assistants to perform calculations accurately and efficiently.
Features
- Addition
- Subtraction
- Multiplication
- Division
- Power calculation
- Square root
- Factorial
- Percentage calculation
- Average calculation
- Prime number checking
- Quadratic equation solver
- Math resource information
- Step-by-step mathematical explanation prompt
Example Use Cases
- Basic arithmetic calculations
- Engineering computations
- Student learning assistance
- Scientific calculations
- Mathematical problem solving
- Educational AI assistants
🌦️ Weather MCP Server
Description
The Weather MCP Server is an MCP-based application that exposes weather-related services as AI tools. It enables AI assistants to provide weather information, forecasts, rain probability, wind details, and travel recommendations through a standardized MCP interface.
The current implementation uses simulated weather data to demonstrate MCP functionality and can easily be extended to integrate with real-time weather APIs.
Features
- Current weather information
- Multi-day weather forecast
- Rain probability prediction
- Celsius ↔ Fahrenheit conversion
- Wind speed information
- Weather server metadata
- AI-powered travel advice prompt
Example Use Cases
- Weather assistant applications
- Travel planning
- Outdoor activity recommendations
- Educational demonstrations of MCP
- AI-powered virtual assistants
- Smart weather information systems
🚀 Technologies Used
- Python
- Model Context Protocol (MCP)
- FastMCP
- Async Programming
- Standard Python Libraries
- REST API Integration (Extensible)
📌 Purpose
This repository demonstrates how to build MCP servers using Python and FastMCP. It showcases how AI models can interact with external tools through a standardized protocol by implementing practical examples such as a Math MCP Server and a Weather MCP Server. These projects serve as learning resources for developers exploring AI tool integration, agent development, and the Model Context Protocol ecosystem.
This project includes tools for retrieving weather information, generating weather forecasts, checking rain probability, converting temperatures between Celsius and Fahrenheit, and obtaining wind speed information. It also provides MCP resources and prompts to support AI-powered travel recommendations.
Features
- 🌤️ Get current weather information for any location
- 📅 Generate multi-day weather forecasts
- 🌧️ Check rain probability for a location
- 🌡️ Convert temperatures between Celsius and Fahrenheit
- 💨 Retrieve wind speed information
- 📚 Expose server metadata using MCP resources
- 🤖 Generate travel advice using MCP prompts
- 🔗 Communicate using the Model Context Protocol (MCP)
Technologies Used
- Python
- Model Context Protocol (MCP)
- FastMCP
- Async Programming
- Random (for simulated weather data)
- Datetime
Project Structure
- Tools – Perform weather-related operations.
- Resources – Provide server metadata and available capabilities.
- Prompts – Generate AI-friendly travel advice based on weather conditions.
Purpose
This project demonstrates how to build an MCP server that exposes reusable tools for AI assistants. It serves as a learning example for integrating Python applications with the Model Context Protocol and showcases how AI agents can invoke external functionality through standardized tool calls.
Future Improvements
- Integrate with real-time weather APIs such as OpenWeatherMap or Open-Meteo.
- Add air quality and UV index information.
- Support severe weather alerts.
- Provide hourly forecasts.
- Include location detection using GPS or IP geo location.
- Add weather history and climate analytics.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。