Archery MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Archery MCP Server List all SQL audit tickets pending my approval"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 连接信息即可使用。
Related MCP server: SQL Server MCP Server
手动安装
方式一: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 平台地址 |
| ✅ | 登录用户名 |
| ✅ | 登录密码 |
功能覆盖(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
Available Tools
27 toolsauth_group_createC
创建权限组。
Args: name: 权限组名称
Inputs: name (required).
auth_group_listC
获取权限组列表。
Args: page: 页码 page_size: 每页数量
Inputs: page, page_size.
instance_createB
创建新的数据库实例配置。
Args: instance_name: 实例名称 type: master/slave db_type: mysql/redis/pgsql/oracle等 host: 主机地址 port: 端口号 user: 用户名 password: 密码
Inputs: host (required), port (required), type (required), user (required), +3 more.
instance_deleteC
删除实例配置。
Args: instance_id: 实例 ID
Inputs: instance_id (required).
instance_listB
获取数据库实例列表。
Args: instance_name: 按名称过滤 db_type: 按类型过滤(mysql/redis/pgsql等) type: master/slave page: 页码 page_size: 每页数量
Inputs: page, type, db_type, page_size, +1 more.
instance_resourceB
获取实例内的资源信息(数据库/schema/表/列)。
Args: instance_id: 实例 ID resource_type: database/schema/table/column db_name: 数据库名 schema_name: schema名 tb_name: 表名
Inputs: instance_id (required), resource_type (required), db_name, tb_name, +1 more.
instance_table_lookupC
按表名查找包含该表的实例列表。
Args: table_name: 表名
Inputs: table_name (required).
instance_updateB
更新实例配置。
Args: instance_id: 实例 ID instance_name: 新名称 host: 新地址 port: 新端口 user: 新用户名 password: 新密码
Inputs: instance_id (required), host, port, user, +2 more.
resource_group_createC
创建资源组。
Args: group_name: 资源组名称
Inputs: group_name (required).
resource_group_listD
获取资源组列表。
Args: page: 页码 page_size: 每页数量
Inputs: page, page_size.
sql_checkA
SQL 语法审核检查(不执行),调用 goInception 返回审核结果。
Args: instance_id: 目标实例 ID db_name: 目标数据库名 full_sql: 要检查的 SQL
Inputs: db_name (required), full_sql (required), instance_id (required).
sqlquery_describe_tableC
获取表结构详情(DESC TABLE)。
Args: instance_name: 实例名称 db_name: 数据库名 tb_name: 表名 schema_name: schema名
Inputs: db_name (required), tb_name (required), instance_name (required), schema_name.
sqlquery_executeB
在线执行 SQL 查询(仅 SELECT),受权限管控。
Args: instance_name: 实例名称 db_name: 数据库名 sql_content: SQL 语句 limit_num: 行数限制,默认100 schema_name: schema名
Inputs: db_name (required), sql_content (required), instance_name (required), limit_num, +1 more.
sqlquery_favoriteA
收藏或取消收藏查询记录。
Args: query_log_id: 查询记录 ID star: true=收藏, false=取消 alias: 收藏别名
Inputs: star (required), query_log_id (required), alias.
sqlquery_instancesB
获取当前用户可访问的查询实例列表。
Args: db_type: 数据库类型过滤,逗号分隔如 mysql,redis type: 实例类型
Inputs: type, db_type.
sqlquery_logsC
获取 SQL 查询历史记录。
Args: limit: 返回数量 offset: 偏移量 search: 搜索关键词 start_date: 开始日期 end_date: 结束日期
Inputs: limit, offset, search, end_date, +1 more.
sqlquery_resourcesA
获取实例内的资源列表(数据库/表/列)。
Args: instance_name: 实例名称 resource_type: database/schema/table/column db_name: 数据库名(查table/column时必填) schema_name: schema名 tb_name: 表名(查column时必填)
Inputs: instance_name (required), resource_type (required), db_name, tb_name, +1 more.
user_createB
创建新用户。
Args: username: 用户名 password: 密码 display: 显示名称 email: 邮箱
Inputs: display (required), password (required), username (required), email.
user_deleteC
删除用户。
Args: user_id: 用户 ID
Inputs: user_id (required).
user_listB
获取用户列表。
Args: username: 按用户名过滤 page: 页码 page_size: 每页数量
Inputs: page, username, page_size.
user_updateB
更新用户信息。
Args: user_id: 用户 ID display: 显示名称 email: 邮箱 is_active: 是否启用
Inputs: user_id (required), email, display, is_active.
workflow_auditA
审核工单(通过或终止)。
Args: workflow_id: 工单 ID workflow_type: 工单类型: 1=查询权限, 2=SQL上线, 3=数据归档 audit_type: pass=通过, cancel=终止 audit_remark: 审核备注 engineer: 操作用户名
Inputs: engineer (required), audit_type (required), workflow_id (required), audit_remark (required), +1 more.
workflow_executeA
执行已审核通过的工单。
Args: workflow_id: 工单 ID workflow_type: 2=SQL上线, 3=数据归档 engineer: 操作用户名(SQL上线必填) mode: auto=线上执行, manual=确认已手动执行
Inputs: workflow_id (required), workflow_type (required), mode, engineer.
workflow_listA
获取 SQL 上线工单列表。
Args: status: 工单状态: workflow_manreviewing(待审核), workflow_review_pass(审核通过), workflow_queuing(排队中), workflow_executing(执行中), workflow_finish(已完成), workflow_abort(已终止) instance_name: 按实例名过滤 engineer: 按提交人过滤 page: 页码 page_size: 每页数量
Inputs: page, status, engineer, page_size, +1 more.
workflow_logB
获取工单操作日志。
Args: workflow_id: 工单 ID workflow_type: 1=查询权限, 2=SQL上线, 3=数据归档
Inputs: workflow_id (required), workflow_type (required).
workflow_pending_listB
获取指定用户待审核的工单列表。
Args: engineer: 用户名
Inputs: engineer (required).
workflow_submitB
提交 SQL 上线工单。
Args: instance_id: 目标实例 ID db_name: 目标数据库名 sql_content: 要执行的 SQL 内容 workflow_name: 工单名称/标题 group_id: 资源组 ID demand_url: 需求链接 is_backup: 是否备份,默认 True
Inputs: db_name (required), group_id (required), instance_id (required), sql_content (required), +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 27 tools
Tools are generally distinct across domains (users, groups, workflows, SQL query, instances). Minor overlap exists between sqlquery_resources and instance_resource, both retrieving resources inside an instance, but descriptions clarify different contexts (user-access vs admin config).
Most tools follow a snake_case pattern, but styles vary: some are noun_verb (user_create), while others are noun_noun_verb (resource_group_list) or noun_noun (sqlquery_instances). The verb position is inconsistent, e.g., sqlquery_describe_table places the verb in the middle.
27 tools cover multiple domains (users, groups, workflows, SQL, instances). The count is slightly high but justified by the broad scope of a database management platform. Each tool serves a specific operation without excessive redundancy.
Core workflows (SQL ticket lifecycle, CRUD for users/instances) are covered. Notable gaps: resource groups and auth groups lack update and delete tools; user management lacks role/permission assignment. Some domains feel incomplete.
Maintenance
Related MCP Connectors
Query and update Teable records, manage tables, and access the Teable API with AI agents.
Manage tickets, run agents and workflows, query tables, and search workspace knowledge.
Work with your database from AI tools: ask, export, approved changes, and scheduled jobs.
Query Postgres, MySQL, SQL Server, Oracle, BigQuery, ClickHouse and Redshift from your AI client.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants like Claude to interact with Atomicwork tickets, requests, and workflows through natural language, providing tools for listing, searching, and managing tickets.MIT
- AlicenseAqualityDmaintenanceEnables AI agents to interact with SQL Server databases for debugging and data issue resolution, providing tools for query execution, schema inspection, and diagnostics.13MIT
- AlicenseNot gradedqualityDmaintenanceEnables LLM agents to interact with MySQL databases through tools for querying, schema management, user administration, and transaction control.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI clients to interact with Yearning 2.x SQL audit platforms, including querying platform data, submitting SQL work orders, and executing read-only queries with enforced safety boundaries.MIT