- 简易 MCP 服务器 (Simple MCP Server)
简易 MCP 服务器 (Simple MCP Server)
Content
简易 MCP 服务器 (Simple MCP Server)
English | 中文
项目介绍
这是一个基于 Model Context Protocol (MCP) 的简单示例项目。项目实现了一个双色球号码生成工具,可以随机生成指定数量的双色球号码。
技术栈
- Spring Boot 3.4.4
- Java 17
- MCP SDK 0.9.0
- Lombok
- Maven
功能特性
- 支持生成1-10组双色球号码
- 每组号码包含6个红球(1-33)和1个蓝球(1-16)
- 通过MCP协议提供服务,可以与支持MCP的客户端(如大语言模型)进行交互
项目运行
本地运行
-
确保你已安装以下环境:
- JDK 17+
- Maven 3.6+
-
克隆项目:
git clone https://github.com/beilingai/simple-mcp-server.git
cd simple-mcp-server
- 编译项目:
mvn clean package
- 运行项目:
java -jar target/mcp-server-1.0-SNAPSHOT.jar
- 服务将在默认端口8080启动
如何使用
本服务通过MCP协议提供工具,可以被支持MCP的客户端调用。
调用示例:
Cursor中调用示例
在Cursor编辑器中,可以通过以下方式调用本服务:
- 在设置中添加本地MCP服务器地址
{
"mcpServers": {
"double-color-ball-mcp-server": {
"url": "http://localhost:8080/sse"
}
}
}
- 在聊天窗口中请求生成双色球号码:
请帮我生成3组双色球号码 - AI助手会调用本MCP服务并返回生成的结果,例如:
生成的双色球号码如下: 第1组: 05 11 16 22 30 33 + 08 第2组: 03 06 14 20 25 31 + 12 第3组: 02 09 17 25 29 32 + 06
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Serper MCP ServerA Serper MCP Server
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Playwright McpPlaywright MCP server
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
CursorThe AI Code Editor
Amap Maps高德地图官方 MCP Server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
DeepChatYour AI Partner on Desktop
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
WindsurfThe new purpose-built IDE to harness magic
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
ChatWiseThe second fastest AI chatbot™
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Tavily Mcp
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题;
Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.