Simple MCP Server
by guog
This is a sample project demonstrating how to build an MCP Server in a minimal way. It includes examples for weather queries and sending messages to DingTalk groups.
Last updated: N/A
What is Simple MCP Server?
This is a simple MCP (Model Control Protocol) server that demonstrates how to integrate external services with AI models. It provides examples for querying weather information using the Amap API and sending messages to DingTalk groups.
How to use Simple MCP Server?
To use this server, you need to clone the repository, install the dependencies using pnpm, build the project, and then configure it in an AI client like Cherry Studio. You'll need to provide API keys for Amap and DingTalk as environment variables.
Key features of Simple MCP Server
Weather query using Amap API
Sending messages to DingTalk groups
Simple and easy to understand implementation
Integration with AI clients supporting MCP
Uses Node.js and pnpm
Use cases of Simple MCP Server
Integrating weather information into AI conversations
Sending notifications to DingTalk groups based on AI interactions
Extending the capabilities of AI models with external services
Demonstrating the use of MCP for AI integration
FAQ from Simple MCP Server
What is MCP?
What is MCP?
MCP stands for Model Control Protocol, a protocol for AI clients to interact with external services.
What is Cherry Studio?
What is Cherry Studio?
Cherry Studio is an AI conversation client that supports multiple large model providers and MCP servers.
What API keys do I need?
What API keys do I need?
You need an API key from Amap for weather queries and an access token from DingTalk for sending messages to DingTalk groups.
Which large model should I use?
Which large model should I use?
You should use a large model with Function Call capabilities, such as Qwen2.5-7B-Instruct.
How do I configure the server in Cherry Studio?
How do I configure the server in Cherry Studio?
In Cherry Studio, go to Settings/MCP Server, add a new server with type STDIO, command 'node', and the path to the built index.js file. Set the GAODE_API_KEY and DINGTALK_ACCESS_TOKEN environment variables.