Astra Db MCP Server

A Model Context Protocol (MCP) server for interacting with Astra DB. MCP extends the capabilities of Large Language Models (LLMs) by allowing them to

Local serverstdioGo

What is the Astra Db MCP MCP server?

Connect Astra Db MCP to Claude, Cursor or any other MCP client and it stops being a tab you switch to. A Model Context Protocol (MCP) server for interacting with Astra DB. MCP extends the capabilities of Large Language Models (LLMs) by allowing them to interact with external systems as agents. The astra db mcp mcp server is what makes that connection.

Installation

@datastax/astra-db-mcp on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • Cursor — To add this to Cursor, go to Settings -> Cursor Settings -> MCP
  • Utility — The Utility tool exposed by this server
  • VectorSearch — The VectorSearch tool exposed by this server
  • HybridSearch — Combine vector similarity search with text search for more accurate results:

Credentials and setup notes

Configuration is passed through the environment: ASTRA_DB_APPLICATION_TOKEN, ASTRA_DB_API_ENDPOINT, ASTRA_DB_KEYSPACE, OPENAI_API_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

You need to have a running Astra DB database. If you don't have one, you can create a free database here. From there, you can get two things you need: 1. An Astra DB Application Token 2. The Astra DB API Endpoint To learn how to get these, please [read the getting started

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Astra Db MCP's toolset — Cursor, Utility, VectorSearch and 1 more — is a fair guide to whether it matches your workflow. It is maintained by datastax; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Available tools

ToolWhat it does
CursorTo add this to [Cursor](https://www.cursor.com/), go to Settings -> Cursor Settings -> MCP
UtilityThe Utility tool exposed by this server.
VectorSearchThe VectorSearch tool exposed by this server.
HybridSearchCombine vector similarity search with text search for more accurate results:

How to install the Astra Db MCP MCP server

{
  "mcpServers": {
    "astra-db-mcp": {
      "command": "npx",
      "args": ["-y", "@datastax/astra-db-mcp"],
      "env": {
        "ASTRA_DB_APPLICATION_TOKEN": "your_astra_db_token",
        "ASTRA_DB_API_ENDPOINT": "your_astra_db_endpoint"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

You need to have a running Astra DB database. If you don't have one, you can create a free database here. From there, you can get two things you need: 1. An Astra DB Application Token 2. The Astra DB API Endpoint To learn how to get these, please [read the getting started

VariableDescriptionRequired
ASTRA_DB_APPLICATION_TOKENCredential the server authenticates with.Yes
ASTRA_DB_API_ENDPOINTConfiguration value read at startup.Optional
ASTRA_DB_KEYSPACECredential the server authenticates with.Yes
OPENAI_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Astra Db MCP to Cursor.
  • Use Astra Db MCP to Utility.
  • Use Astra Db MCP to VectorSearch.

Frequently asked questions

It connects Astra Db MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 4 tools (Cursor, Utility, VectorSearch, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Astra Db MCP directly.