A Simple MCP Server And Client
A

A Simple MCP Server And Client

A simple implementation of an MCP server and client, demonstrating how to provide and access weather information through the JSON - RPC protocol, including city resource queries, weather forecast tools, and weather advice prompt functions.
2 points
8.5K

What is an MCP server?

The MCP (Model Context Protocol) server is a communication protocol based on models and contexts, used to transfer data and services between different systems. This server focuses on providing weather information and supports city information queries and weather forecasts.

How to use the MCP server?

By connecting to the MCP server, you can easily obtain city weather information or perform weather forecasts. Simply follow the instructions to perform simple operations to start using it.

Applicable scenarios

The MCP server is suitable for users who need real - time weather information, such as travelers, meteorological researchers, or corporate decision - makers.

Main features

Basic city information
Provide detailed information about cities such as New York, London, and Tokyo, including geographical location, demographics, etc.
Weather forecast tool
Generate a weather forecast for the next few days based on the input city name and number of days.
Weather advice
Provide practical advice for travel or activities based on the current weather conditions.
Advantages
Support information queries for multiple cities
Provide accurate weather forecast services
Easy to integrate into existing systems
Limitations
Only support English interaction
Require an internet connection to run

How to use

Start the server
Ensure that the server is installed and running properly. You can start the server through the command line.
Connect the client
Start the client program and establish a connection with the server.
Execute a query
Use the client to query city information or request a weather forecast.

Usage examples

Query the weather in New York
Get the 5 - day weather forecast for New York.
Get weather advice for London
Provide travel advice for London users based on the current weather conditions.

Frequently Asked Questions

How to start the MCP server?
How does the client connect to the server?
Does it support other languages?

Related resources

MCP server documentation
Detailed MCP protocol description and usage guide
GitHub code repository
Source code and contribution guide

Installation

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

Alternatives

P
Paperbanana
Python
9.3K
5 points
F
Finlab Ai
FinLab AI is a quantitative financial analysis platform that helps users discover excess returns (alpha) in investment strategies through AI technology. It provides a rich dataset, backtesting framework, and strategy examples, supporting automated installation and integration into mainstream AI programming assistants.
8.2K
4 points
A
Apify MCP Server
The Apify MCP Server is a tool based on the Model Context Protocol (MCP) that allows AI assistants to extract data from websites such as social media, search engines, and e-commerce through thousands of ready-to-use crawlers, scrapers, and automation tools (Apify Actors). It supports OAuth and Skyfire proxy payment and can be integrated into MCP clients such as Claude and VS Code through HTTPS endpoints or local stdio.
TypeScript
9.0K
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
17.4K
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
10.7K
4 points
M
Maverick MCP
MaverickMCP is a personal stock analysis server based on FastMCP 2.0, providing professional level financial data analysis, technical indicator calculation, and investment portfolio optimization tools for MCP clients such as Claude Desktop. It comes pre-set with 520 S&P 500 stock data, supports multiple technical analysis strategies and parallel processing, and can run locally without complex authentication.
Python
11.4K
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
34.5K
5 points
S
Scrapling
Scrapling is an adaptive web scraping library that can automatically learn website changes and re - locate elements. It supports multiple scraping methods and AI integration, providing high - performance parsing and a developer - friendly experience.
Python
22.9K
5 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
22.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
26.2K
4.3 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
79.8K
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
38.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
68.9K
4.5 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#
36.0K
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
24.2K
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
55.3K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase