A
licenseNot graded
qualityB
maintenanceWraps the JSONPlaceholder fake REST API to enable testing and prototyping with CRUD operations on posts, comments, and other resources via MCP.
590 npm
MIT
一个简单的 Python 示例,展示如何在普通应用代码和 MCP 工具中复用 API 客户端和业务逻辑。
src/example/
├── api/
│ └── api_client.py
├── business/
│ └── service.py
├── mcp/
│ └── server.py
└── main.py该示例提供 5 个操作:
get_user
list_users
create_user
update_user
delete_user
MCP 层刻意保持轻量:它验证 MCP 输入并委托给业务服务。业务服务将 HTTP 工作委托给 API 客户端。
Related MCP server: JSONPlaceholder MCP Server
python -m venv .venv
# Windows:
.venv\Scripts\activate
# Linux/macOS:
source .venv/bin/activate
pip install -r requirements.txtpython -m src.example.mcp.server或者配置 MCP 客户端来启动:
python -m src.example.mcp.server通过终端
{"jsonrpc":"2.0","method":"tools/list","id":1}或者通过 Claude
{
"mcpServers": {
"example-users": {
"command": "python",
"args": ["-m", "src.example.mcp.server"]
}
}
}这是一个自包含的架构示例。API 客户端使用 https://jsonplaceholder.typicode.com 作为公开的演示 API。
对于真实 API,请替换 ApiClient 的实现,并保持业务/MCP 接口基本不变。
This server cannot be deployed
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
Build multi-tenant apps over MCP. Schemas, CRUD, deploys — access control enforced server-side.
Governed MCP gateway: one endpoint for your tools, with credential custody and audit log.