MCP Server Client Example
M

MCP Server Client Example

A Python-based MCP client and server example project, including a weather server implementation and a Claude AI interaction client. It requires an Anthropic API key to run.
2 points
5.9K

What is MCP Weather Service?

This is a weather service system based on the Model Context Protocol (MCP), allowing developers to interact with weather data APIs and AI models (such as Claude) through a standardized protocol. The server side provides weather data interfaces, and the client side can integrate AI conversation capabilities.

How to use MCP Weather Service?

You can connect to the service through a simple Python client, which supports natural language queries for weather information. The AI assistant will automatically parse the request and return structured weather data.

Use cases

Suitable for applications that need to combine weather data with AI conversation capabilities, such as intelligent travel assistants, agricultural monitoring systems, or weather warning notification services.

Main features

Standardized MCP protocol
Adopt the Model Context Protocol to achieve standardized communication between the client and the server
AI integration
Built-in support for the Claude AI model, which can handle natural language weather queries
National Meteorological Service data
Connect to the National Meteorological Service API to obtain authoritative weather data
Advantages
Out-of-the-box Python implementation for quick deployment
AI-assisted natural language interaction experience
Modular design for easy expansion of new functions
Limitations
Requires a Python 3.12+ environment
Depends on the Anthropic API key
Currently only supports basic weather query functions

How to use

Environment preparation
Install Python 3.12 or a higher version. It is recommended to use uv to manage the environment.
Create a virtual environment
Use uv to create and activate a Python virtual environment.
Install dependencies
Use uv to install the dependencies required by the project.
Configure the API key
Copy the .env.example file to .env and fill in your Anthropic API key

Usage examples

Basic weather query
Query the weather conditions of a specified city through natural language
Multi-day forecast
Get the weather trend forecast for multiple days in the future

Frequently Asked Questions

How to obtain an Anthropic API key?
Which cities' weather queries are supported?
Can other AI models be extended?

Related resources

MCP Protocol official website
Official documentation for the Model Context Protocol
GitHub repository
Project source code repository
Anthropic API documentation
API usage guide for Claude AI

Installation

Copy the following command to your Client for configuration
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

N
Next Devtools MCP
The Next.js development tools MCP server provides Next.js development tools and utilities for AI programming assistants such as Claude and Cursor, including runtime diagnostics, development automation, and document access functions.
TypeScript
9.7K
5 points
P
Praisonai
PraisonAI is a production-ready multi-AI agent framework with self-reflection capabilities, designed to create AI agents to automate the solution of various problems from simple tasks to complex challenges. It simplifies the construction and management of multi-agent LLM systems by integrating PraisonAI agents, AG2, and CrewAI into a low-code solution, emphasizing simplicity, customization, and effective human-machine collaboration.
Python
10.5K
5 points
M
MCP Server
The Mapbox MCP Server is a model context protocol server implemented in Node.js, providing AI applications with access to Mapbox geospatial APIs, including functions such as geocoding, point - of - interest search, route planning, isochrone analysis, and static map generation.
TypeScript
8.5K
4 points
B
Blueprint MCP
Blueprint MCP is a chart generation tool based on the Arcade ecosystem. It uses technologies such as Nano Banana Pro to automatically generate visual charts such as architecture diagrams and flowcharts by analyzing codebases and system architectures, helping developers understand complex systems.
Python
8.8K
4 points
K
Klavis
Klavis AI is an open-source project that provides a simple and easy-to-use MCP (Model Context Protocol) service on Slack, Discord, and Web platforms. It includes various functions such as report generation, YouTube tools, and document conversion, supporting non-technical users and developers to use AI workflows.
TypeScript
18.4K
5 points
D
Devtools Debugger MCP
The Node.js Debugger MCP server provides complete debugging capabilities based on the Chrome DevTools protocol, including breakpoint setting, stepping execution, variable inspection, and expression evaluation.
TypeScript
10.0K
4 points
M
Mcpjungle
MCPJungle is a self-hosted MCP gateway used to centrally manage and proxy multiple MCP servers, providing a unified tool access interface for AI agents.
Go
0
4.5 points
N
Nexus
Nexus is an AI tool aggregation gateway that supports connecting multiple MCP servers and LLM providers, providing tool search, execution, and model routing functions through a unified endpoint, and supporting security authentication and rate limiting.
Rust
0
4 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
20.9K
4.5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
23.2K
4.3 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
32.5K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
67.5K
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
30.0K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
61.9K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
21.8K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
44.5K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase