Astra DB

v2.0.0
io.github.erichare/astra-mcp Checked 2 days ago Published 2 months ago

Astra DB tools for agents: schema, find, vector search, guarded writes, and interactive views.

Values you need

VariableWhat it is
ASTRA_DB_APPLICATION_TOKENoptional secret Astra application token (AstraCS:…). Optional when the project .env or ~/.astrarc provides one.
ASTRA_DB_API_ENDPOINToptional Data API endpoint of the default database. Optional when the token sees one database.
ASTRA_DB_KEYSPACEoptional Default keyspace (default_keyspace when unset).
ASTRA_MCP_READ_ONLYoptional Set to 1 to hide write and schema tools.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add astra-mcp -- npx -y @erichare/astra-mcp@2.0.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "astra-mcp": {
      "args": [
        "-y",
        "@erichare/astra-mcp@2.0.0"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "astra-mcp": {
      "args": [
        "-y",
        "@erichare/astra-mcp@2.0.0"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "astra-mcp": {
      "args": [
        "-y",
        "@erichare/astra-mcp@2.0.0"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.astra-mcp]
command = "npx"
args = ["-y", "@erichare/astra-mcp@2.0.0"]

Remote (hosted)

Run in a terminal
claude mcp add --transport http astra-mcp https://astra-widgets-mcp.vercel.app/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "astra-mcp": {
      "args": [
        "-y",
        "mcp-remote",
        "https://astra-widgets-mcp.vercel.app/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "astra-mcp": {
      "url": "https://astra-widgets-mcp.vercel.app/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "astra-mcp": {
      "type": "http",
      "url": "https://astra-widgets-mcp.vercel.app/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.astra-mcp]
command = "npx"
args = ["-y", "mcp-remote", "https://astra-widgets-mcp.vercel.app/mcp"]

For AI agents

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: connection_status, list_databases, database_overview, describe_collection, describe_table, find, vector_search, count, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json