
18 MCP tools · interactive views · guarded writes · ~1,660 Data API examples in 5 languages
Claude Code · Codex · Cursor · VS Code · Windsurf · Gemini CLI · Claude Desktop · IBM Bob · ChatGPT
Published by JEStats. Maintained by Eric Hare.
JEStats Astra DB Plugin is an unofficial, community-maintained integration. It is not affiliated with, endorsed by, or an official product of DataStax or IBM.
Give your coding agent a live view of your Astra DB. It can map a database, read a collection's real schema before writing code against it, run vector and hybrid searches, page through documents, and change data, asking you first before anything destructive. When it writes application code, it starts from canonical Data API snippets for Python, TypeScript, Java, C#, and Go instead of guessing.
Quickstart
npx -y @erichare/astra-mcp init
init finds the agents on your machine and sets each one up. Claude Code and Codex get the full plugin (skills, hooks, and the MCP server) from their plugin marketplaces; the others get the MCP server in their config.
Already use the Astra CLI? The server can read your existing ~/.astrarc profile directly. Install without the separate login step and check the connection:
npx -y @erichare/astra-mcp init --no-login
npx -y @erichare/astra-mcp doctor
To select and verify a database from a named profile, run npx -y @erichare/astra-mcp login --profile analytics (add --astrarc /path/to/.astrarc for a custom CLI configuration). Setup saves the profile selector and connection details; the token stays in your CLI profile, and rotation takes effect on the next call. Astra still requires an application token upstream. See configuration for credential precedence.
Connecting without an existing profile? Run the regular init flow above, or npx -y @erichare/astra-mcp login:
- Paste an application token at a hidden prompt. Create one in the Astra console under Settings → Tokens.
- Pick a database and a keyspace.
ASTRA_DB_APPLICATION_TOKEN, ASTRA_DB_API_ENDPOINT, and ASTRA_DB_KEYSPACE are written to ./.env (mode 0600), and login offers to add .env to .gitignore if it isn't ignored yet.
No restart needed: the server re-reads credentials on every call. Now ask your agent:
What's in my Astra database?
Find articles similar to "how do black holes evaporate".
Write a TypeScript script that loads products.json into a new vectorize collection.
Needs Node.js 20+. Prefer a one-liner? curl -fsSL https://raw.githubusercontent.com/jestatsio/astra-db-plugin/main/install.sh | sh (PowerShell: irm https://raw.githubusercontent.com/jestatsio/astra-db-plugin/main/install.ps1 | iex) runs the same init.
The repository and public publisher are JEStats. The npm package remains @erichare/astra-mcp, and the plugin remains astra-db@astra-db-marketplace, so existing installations keep their identifiers. These are community marketplace installs; official directory submission and approval are separate steps. See the release assessment and store listing draft.
See your data
In hosts that render MCP Apps, such as Claude and ChatGPT, the overview, schema, explorer, and search tools answer with an interactive view: drill from a database into a collection, its documents, and similar documents, with a Back history, your host's theme, and full keyboard support. Elsewhere, the agent gets the same data as text, and can write a standalone HTML page when you ask for a visual.