MCP.so
登录

简易 MCP 服务器 (Simple MCP Server)

@beilingai

基本信息

分类

其他

传输方式

stdio

作者

beilingai

关于 简易 MCP 服务器

暂无概览

#simple-mcp-server#mcp#number-generator

简易 MCP 服务器 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "double-color-ball-mcp-server": {
      "type": "http",
      "url": "http://localhost:8080/sse"
    }
  }
}

简易 MCP 服务器 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,直接连接服务器端点实时获取工具列表。

概览

What is Simple MCP Server?

Simple MCP Server is a sample project based on the Model Context Protocol (MCP). It implements a double-color ball number generator that produces random lottery numbers for up to 10 sets per request. The server is built with Spring Boot 3.4.4, Java 17, MCP SDK 0.9.0, and Maven.

How to use Simple MCP Server?

Clone the repository, compile with mvn clean package, and run with java -jar target/mcp-server-1.0-SNAPSHOT.jar. The service starts on port 8080 and exposes an SSE endpoint at http://localhost:8080/sse. Clients (e.g., Cursor editor) can add the server URL in their MCP configuration to invoke the double-color ball tool.

Key features of Simple MCP Server

  • Generates 1–10 sets of double-color ball numbers
  • Each set includes 6 red balls (1–33) and 1 blue ball (1–16)
  • Serves via MCP protocol for AI assistant integration
  • Built with Java 17 and Spring Boot 3.4.4

Use cases of Simple MCP Server

  • Generate random double-color ball lottery numbers via a chat interface
  • Demonstrate a minimal MCP server implementation for learning purposes

常见问题

1

What runtime does Simple MCP Server require?

JDK 17+ and Maven 3.6+ are needed to build and run the server.

2

How do I configure clients like Cursor to use this server?

Add a JSON entry to your editor's MCP server settings with `"url": "http://localhost:8080/sse"`.

3

Can I generate more than 10 sets of numbers?

No, the server is designed to generate 1–10 sets per request.

4

Where does the server run?

It runs locally on your machine at port 8080. No external network connection is needed.

5

What transport does the server use?

The server exposes an SSE (Server-Sent Events) endpoint at `/sse`.

评论

其他 分类下的更多 MCP 服务器