A service framework supporting the Model Context Protocol (MCP) to integrate enterprise systems and AI platforms via RESTful, gRPC, and Dubbo protocols.
Open-MCP-Server 是一个支持模型上下文协议(Model Context Protocol, MCP)的服务框架,旨在简化企业系统与AI平台的集成,为AI系统提供业务数据支持。本框架原生兼容各类开放API、内部系统API、Dubbo接口等多协议接入,赋能AI系统实现定制化需求。
POST /api/test
Content-Type: application/json
{
"apiUrl": "http://api.example.com/data",
"method": "GET",
"cookie": "session=abc123",
"requestData": "{\"param1\": \"value1\"}"
}
功能说明:
POST /api/generate
Content-Type: application/json
{
"apiUrl": "http://api.example.com/data",
"method": "GET",
"packagePath": "com.open.mcp.server.api",
"apiName": "ExampleApi",
"requestData": "{\"param1\": \"value1\"}",
"responseData": "{\"result\": \"success\"}"
}
POST /api/download
Content-Type: application/json
{
"apiUrl": "http://api.example.com/data",
"method": "GET",
"packagePath": "com.open.mcp.server.api",
"apiName": "ExampleApi",
"requestData": "{\"param1\": \"value1\"}",
"responseData": "{\"result\": \"success\"}"
}
功能说明:
GET /ai-assistant/ai/ask?question=你的问题
POST /ai-assistant/session/create
POST /ai-assistant/session/chat
Content-Type: application/x-www-form-urlencoded
sessionId=xxx&message=用户消息&systemPrompt=系统提示词
GET /ai-assistant/session/history?sessionId=xxx
POST /ai-assistant/session/clear
Content-Type: application/x-www-form-urlencoded
sessionId=xxx&reset=true
功能说明:
GET /ai/generate?message=生成内容
GET /ai/generateStream?message=生成内容
GET /ai/mcp?message=使用工具的问题
功能说明:
# 获取服务列表
GET /api/http/list
# 获取单个服务
GET /api/http/{id}
# 创建服务
POST /api/http/save
Content-Type: application/json
# 更新服务
PUT /api/http/{id}
Content-Type: application/json
# 删除服务
DELETE /api/http/{id}
# 获取服务列表
GET /api/dubbo/list
# 获取单个服务
GET /api/dubbo/{id}
# 创建服务
POST /api/dubbo/save
Content-Type: application/json
# 更新服务
PUT /api/dubbo/{id}
Content-Type: application/json
# 删除服务
DELETE /api/dubbo/{id}
# 获取服务列表
GET /api/grpc/list
# 获取单个服务
GET /api/grpc/{id}
# 创建服务
POST /api/grpc/save
Content-Type: application/json
# 更新服务
PUT /api/grpc/{id}
Content-Type: application/json
# 删除服务
DELETE /api/grpc/{id}
# 获取服务列表
GET /api/soap/list
# 获取单个服务
GET /api/soap/{id}
# 创建服务
POST /api/soap/save
Content-Type: application/json
# 更新服务
PUT /api/soap/{id}
Content-Type: application/json
# 删除服务
DELETE /api/soap/{id}
# 获取连接列表
GET /api/registry/list
# 获取单个连接
GET /api/registry/{id}
# 创建连接
POST /api/registry/save
Content-Type: application/json
# 更新连接
PUT /api/registry/{id}
Content-Type: application/json
# 删除连接
DELETE /api/registry/{id}
# 分页查询
GET /api/registry/page?connectionName=xxx®istryType=xxx&host=xxx&pageNum=1&pageSize=10
# 批量保存
POST /api/registry/batch-save
Content-Type: application/json
# 批量删除
POST /api/registry/batch-delete
Content-Type: application/json
POST /api/setLanguage
Content-Type: application/json
{
"language": "zh_CN"
}
# 工具名称: getDubboServiceInfo
# 参数说明:
{
"interfaceName": "com.example.DemoService" # Dubbo服务接口全限定名
}
# 工具名称: invokeDubboService
# 参数说明:
{
"interfaceName": "com.example.DemoService", # Dubbo服务接口全限定名
"methodName": "sayHello", # 要调用的方法名
"version": "1.0.0", # 服务版本(可选)
"params": { # 方法参数(JSON格式)
"param1": "value1",
"param2": 123
}
}
dubbo:
application:
name: ${spring.application.name}
qos-enable: false
registry:
address: zookeeper://127.0.0.1:2181
timeout: 30000
protocol:
name: dubbo
port: -1
consumer:
check: false
timeout: 30000
retries: 0
juhe:
news:
apikey: your_api_key
baseUrl: http://v.juhe.cn
video:
apikey: ${juhe.news.apikey}
baseUrl: ${juhe.news.baseUrl}
"mcpServers": {
"open-mcp-server": {
"command": "java",
"args": [
"-Dspring.ai.mcp.server.stdio=true",
"-jar",
"/jar包路径/open-mcp-server-1.0-SNAPSHOT.jar",
"juhe.news.api-key=您的聚合密钥"
]
}
}
open-mcp-server 采用 MIT 许可证授权。 根据 MIT 许可证条款,您可以自由使用、修改和分发本软件。具体条款请参阅项目仓库中的 LICENSE 文件。
A Model Context Protocol (MCP) server for CODESYS V3 programming environments.
MCP server for interacting with the Godot game engine, providing tools for editing, running, debugging, and managing scenes in Godot projects.
MCP server to provide Jira Tickets information to AI coding agents like Cursor.
Tools for logging, analyzing, and improving Claude Desktop prompts to enhance prompt engineering skills.
A comprehensive MCP server for managing OPNsense firewalls, offering over 300 tools for configuration and monitoring.
Access Solana documentation context through a simple notes system with resources, tools, and prompts.
An MCP server (and command-line tool) to provide a dynamic map of chat-related files from the repository with their function prototypes and related files in order of relevance. Based on the "Repo Map" functionality in Aider.chat
An MCP server for interacting with the Postman API, requiring an API key.
A template for deploying a remote, auth-less MCP server on Cloudflare Workers.
AI-powered SVG animation generator that transforms static files into animated SVG components using the Allyson platform