Web管理MCP服务器
Java后台管理系统CRUD操作的MCP工具,支持Sa-Token鉴权。
功能
- 创建资源 (POST)
- 查询资源 (GET /{id})
- 更新资源 (PUT)
- 批量删除 (DELETE /batchDelete?ids=)
- 分页查询 (GET ?currentPage=&pageSize=)
- 自定义请求
安装
uvx install web-manage-mcp
MCP配置
{
"mcpServers": {
"web-manage-mcp": {
"command": "uvx",
"args": ["web-manage-mcp"]
}
}
}
注意: 不再需要在环境变量中配置认证信息,所有认证信息通过 java_add_api 工具动态配置。
工具列表
| 工具 | 描述 | 参数 |
|---|---|---|
java_add_api |
添加API配置 | name, base_url, cookie_name?, cookie_token? |
java_create |
创建资源 POST | api_name, endpoint, data |
java_get |
查询资源 GET /{id} | api_name, endpoint, item_id |
java_update |
更新资源 PUT | api_name, endpoint, data |
java_delete |
批量删除 DELETE | api_name, endpoint, ids |
java_list |
分页查询 GET | api_name, endpoint, page?, size?, params? |
java_custom |
自定义请求 | api_name, method, endpoint, data?, params? |
java_list_apis |
列出已配置API | 无 |
java_update_token |
更新token | api_name, token |
使用示例
// 1. 配置API(包含认证信息)
java_add_api({
"name": "admin",
"base_url": "http://localhost:8080",
"cookie_name": "satoken", // 可选,默认为 "satoken"
"cookie_token": "your-actual-token-value" // 必填,实际的登录token
})
// 2. 查询用户列表
java_list({
"api_name": "admin",
"endpoint": "/admin/user",
"page": 1,
"size": 10
})
// 3. 新增用户
java_create({
"api_name": "admin",
"endpoint": "/admin/user",
"data": {"username": "test", "password": "123456"}
})
// 4. 更新用户
java_update({
"api_name": "admin",
"endpoint": "/admin/user",
"data": {"id": 1, "username": "test2"}
})
// 5. 删除用户
java_delete({
"api_name": "admin",
"endpoint": "/admin/user",
"ids": [1, 2, 3]
})
// 6. 更新token(如果token过期)
java_update_token({
"api_name": "admin",
"token": "new-token-value"
})
支持的后台接口
适配以下接口模式:
/admin/user- 用户管理/admin/role- 角色管理/admin/permission- 权限管理/admin/dict- 字典管理/admin/notice- 通知管理/admin/operLog- 操作日志/admin/front-user- 前台用户/admin/com-query- 通用查询
License
MIT
Metadata
Release files for web-manage-mcp 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| web_manage_mcp-0.4.0.tar.gz | 52.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| web_manage_mcp-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 61.8 kB
Release files / web_manage_mcp-0.4.0.tar.gz
| Download URL | web_manage_mcp-0.4.0.tar.gz |
|---|---|
| Size | 52.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f3783f2e0af3131ac7da4f0b58b270c9150713e4bdb0e6d9c2b99b4f7017133
|
|
BLAKE2b-256 checksum How to use checksums |
9506dd5252673817b022564842e5ecc149f88f440136aa3cd339b30be72c136a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / web_manage_mcp-0.4.0-py3-none-any.whl
| Download URL | web_manage_mcp-0.4.0-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
623a37edf24b0accbca5c3df7baf262bef03adf5d24d929688374dfe6d6af59c
|
|
BLAKE2b-256 checksum How to use checksums |
d0c6b7257602b715a967629018ee16df7dbef2eccddf29290e0070a28ce93491
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for web-manage-mcp 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.