Archery MCP Server
将 Archery SQL 审核查询平台的 API 封装为 MCP 工具,让 AI Agent(Kiro/Claude/Cursor 等)能够直接操作 Archery 平台。
一键安装(推荐)
作为 Agent Skill 安装,自动配置 MCP:
npx skills add ckall/archery-mcp-server
安装后在 MCP 配置中填入你的 Archery 连接信息即可使用。
手动安装
方式一:uvx(无需预装,推荐)
{
"mcpServers": {
"archery": {
"command": "uvx",
"args": ["archery-mcp-server@latest"],
"env": {
"ARCHERY_BASE_URL": "http://archery.example.com",
"ARCHERY_USERNAME": "admin",
"ARCHERY_PASSWORD": "your_password"
}
}
}
}
方式二:pip install
pip install archery-mcp-server
然后配置 MCP:
{
"mcpServers": {
"archery": {
"command": "archery-mcp",
"env": {
"ARCHERY_BASE_URL": "http://archery.example.com",
"ARCHERY_USERNAME": "admin",
"ARCHERY_PASSWORD": "your_password"
}
}
}
}
环境变量
| 变量 | 必填 | 说明 |
|---|---|---|
ARCHERY_BASE_URL |
✅ | Archery 平台地址 |
ARCHERY_USERNAME |
✅ | 登录用户名 |
ARCHERY_PASSWORD |
✅ | 登录密码 |
功能覆盖(26 个工具)
| 模块 | 工具数 | 能力 |
|---|---|---|
| SQL 工单管理 | 6 | 提交/查看/审核/执行/待办/日志 |
| SQL 审核 | 1 | 语法检查(goInception) |
| SQL 查询 | 6 | 执行查询/浏览资源/表结构/历史/收藏 |
| 实例管理 | 6 | CRUD/资源浏览/按表名查实例 |
| 用户管理 | 4 | CRUD |
| 资源组/权限组 | 4 | 列表/创建 |
详细工具说明见 SKILL.md。
项目结构
archery-mcp-server/
├── SKILL.md # Agent Skill 定义(安装即用)
├── pyproject.toml # Python 包配置
├── mcp.json # MCP 配置示例
└── src/archery_mcp/
├── __init__.py
├── client.py # Archery API 客户端(JWT认证)
└── server.py # MCP Server(26个工具)
开发
# 克隆
git clone https://github.com/ckall/archery-mcp-server.git
cd archery-mcp-server
# 安装开发依赖
pip install -e .
# 本地运行
export ARCHERY_BASE_URL=http://localhost:9123
export ARCHERY_USERNAME=admin
export ARCHERY_PASSWORD=admin
archery-mcp
兼容性
- Python 3.10+
- Archery 1.8+(需启用 REST API)
- 支持所有 MCP 兼容的 AI IDE:Kiro、Claude Code、Cursor、Windsurf 等
License
MIT
Metadata
Release files for archery-mcp-server 0.1.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 | |
|---|---|---|---|---|
| archery_mcp_server-0.1.0.tar.gz | 8.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| archery_mcp_server-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.9 kB
Release files / archery_mcp_server-0.1.0.tar.gz
| Download URL | archery_mcp_server-0.1.0.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07c2e6d4b9995838af85e0d815e4b04b10cb623ec4ab7f562d306456e2917ab4
|
|
BLAKE2b-256 checksum How to use checksums |
7a2e71b2ea863fad52f5089cd6e524a63bccf163e74f6c4fe533658c4f9c0775
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / archery_mcp_server-0.1.0-py3-none-any.whl
| Download URL | archery_mcp_server-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9ea696e2113e3d978e8562bce6e98a4284acddff40bbd066a78cb499255d9588
|
|
BLAKE2b-256 checksum How to use checksums |
802ade650d1c6009f254795683079ccfc654347d6542b5133440d48ff5befd16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for archery-mcp-server 0.1.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.