Archery MCP

v0.1.1
io.github.itzhouq/archery-mcp Checked 9 hours ago Published 1 month ago

Read-only MCP server for the Archery SQL audit platform: production schema and release SQL checks

Values you need

VariableWhat it is
ARCHERY_BASE_URLrequired Base URL of your Archery deployment, e.g. https://archery.example.com
ARCHERY_USERNAMErequired Archery account username (use a dedicated least-privilege account)
ARCHERY_PASSWORDrequired secret Archery account password
ARCHERY_TOTP_SECREToptional secret Base32 TOTP secret if the account enables Google Authenticator 2FA
ARCHERY_INSTANCE_NAMErequired Archery instance name to lock the server to
ARCHERY_DB_NAMErequired Database name to lock the server to
ARCHERY_SCHEMA_NAMEoptional Schema name (PostgreSQL usually 'public'; leave empty for MySQL)
ARCHERY_QUERY_LIMIToptional Default row limit when the query tool is called without limit; 0 delegates the max to Archery

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add archery-mcp -e 'ARCHERY_BASE_URL=<ARCHERY_BASE_URL>' -e 'ARCHERY_DB_NAME=<ARCHERY_DB_NAME>' -e 'ARCHERY_INSTANCE_NAME=<ARCHERY_INSTANCE_NAME>' -e 'ARCHERY_PASSWORD=<ARCHERY_PASSWORD>' -e 'ARCHERY_USERNAME=<ARCHERY_USERNAME>' -- uvx archery-mcp==0.1.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "archery-mcp": {
      "args": [
        "archery-mcp==0.1.1"
      ],
      "command": "uvx",
      "env": {
        "ARCHERY_BASE_URL": "<ARCHERY_BASE_URL>",
        "ARCHERY_DB_NAME": "<ARCHERY_DB_NAME>",
        "ARCHERY_INSTANCE_NAME": "<ARCHERY_INSTANCE_NAME>",
        "ARCHERY_PASSWORD": "<ARCHERY_PASSWORD>",
        "ARCHERY_USERNAME": "<ARCHERY_USERNAME>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "archery-mcp": {
      "args": [
        "archery-mcp==0.1.1"
      ],
      "command": "uvx",
      "env": {
        "ARCHERY_BASE_URL": "<ARCHERY_BASE_URL>",
        "ARCHERY_DB_NAME": "<ARCHERY_DB_NAME>",
        "ARCHERY_INSTANCE_NAME": "<ARCHERY_INSTANCE_NAME>",
        "ARCHERY_PASSWORD": "<ARCHERY_PASSWORD>",
        "ARCHERY_USERNAME": "<ARCHERY_USERNAME>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "ARCHERY_BASE_URL",
      "id": "archery-base-url",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "ARCHERY_DB_NAME",
      "id": "archery-db-name",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "ARCHERY_INSTANCE_NAME",
      "id": "archery-instance-name",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "ARCHERY_PASSWORD",
      "id": "archery-password",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "ARCHERY_USERNAME",
      "id": "archery-username",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "archery-mcp": {
      "args": [
        "archery-mcp==0.1.1"
      ],
      "command": "uvx",
      "env": {
        "ARCHERY_BASE_URL": "${input:archery-base-url}",
        "ARCHERY_DB_NAME": "${input:archery-db-name}",
        "ARCHERY_INSTANCE_NAME": "${input:archery-instance-name}",
        "ARCHERY_PASSWORD": "${input:archery-password}",
        "ARCHERY_USERNAME": "${input:archery-username}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.archery-mcp]
command = "uvx"
args = ["archery-mcp==0.1.1"]
env = { "ARCHERY_BASE_URL" = "<ARCHERY_BASE_URL>", "ARCHERY_DB_NAME" = "<ARCHERY_DB_NAME>", "ARCHERY_INSTANCE_NAME" = "<ARCHERY_INSTANCE_NAME>", "ARCHERY_PASSWORD" = "<ARCHERY_PASSWORD>", "ARCHERY_USERNAME" = "<ARCHERY_USERNAME>" }

For AI agents

  1. Ask the user for: ARCHERY_BASE_URL, ARCHERY_USERNAME, ARCHERY_PASSWORD, ARCHERY_INSTANCE_NAME, ARCHERY_DB_NAME. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: list_tables, describe_table, query, query_history, sql_check.
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json