Feedback

Astra DB MCP Server Verified

@datastax Claim

Basic information

Runtime
TypeScript
Version
1.0.0
Category
License
Apache-2.0
Transports
stdio
Author
datastax
Submitted by
Community
Quality
50
Stars
39

About Astra DB MCP Server

Astra DB offers cloud-native, scalable data storage and retrieval for AI apps, with seamless integration like AWS RDS and cloud oracle solutions.

Astra DB is a MCP server in the Databases category listed in the AddMCP.net directory, published by datastax. It exposes 19 tools, including GetCollections, CreateCollection, UpdateCollection, DeleteCollection and more. Supported transport: stdio. Runtime: TypeScript. License: Apache-2.0. The repository has 39 GitHub stars. Source code is hosted on github.com. Related topics: astra, database, databases, db, mcp.

Setup

{
    "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"
            }
        }
    }
}

Astra DB MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "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"
            }
        }
    }
}

Astra DB MCP Server tools

  • GetCollections — Get all collections in the Astra DB database
    (no parameters)
  • CreateCollection — Create a new collection in the database
    collectionName:string*, vector:boolean, dimension:number, metric:string
  • UpdateCollection — Update an existing collection in the database
    collectionName:string*, newName:string*
  • DeleteCollection — Delete a collection from the database
    collectionName:string*
  • ListRecords — List records from a collection in the database
    collectionName:string*, limit:number
  • GetRecord — Get a specific record from a collection by ID
    collectionName:string*, recordId:string*
  • CreateRecord — Create a new record in a collection
    collectionName:string*, record:object*
  • UpdateRecord — Update an existing record in a collection
    collectionName:string*, recordId:string*, record:object*
  • DeleteRecord — Delete a record from a collection
    collectionName:string*, recordId:string*
  • FindRecord — Find records in a collection by field value
    collectionName:string*, field:string*, value:string*, limit:number
  • FindDistinctValues — Find distinct values for a field in a collection
    collectionName:string*, field:string*, filter:object
  • BulkCreateRecords — Create multiple records in a collection at once
    collectionName:string*, records:array*
  • BulkUpdateRecords — Update multiple records in a collection at once
    collectionName:string*, records:array*
  • BulkDeleteRecords — Delete multiple records from a collection at once
    collectionName:string*, recordIds:array*
  • VectorSearch — Search for records in a collection using vector similarity
    collectionName:string*, queryVector:array*, limit:number, minScore:number, filter:object
  • HybridSearch — Search for records using both vector similarity and text matching
    collectionName:string*, queryVector:array*, textQuery:string*, weights:object, limit:number, fields:array
  • OpenBrowser — Open a web browser to a specific URL
    url:string*
  • EstimateDocumentCount — Estimate the number of documents in a collection using a fast, approximate count method
    collectionName:string*
  • HelpAddToClient — Help the user add the Astra DB client to their MCP client
    (no parameters)

Overview

What is Astra DB?

A Model Context Protocol (MCP) server for interacting with Astra DB. It extends LLMs by allowing them to act as agents that can manage collections, perform CRUD operations, run vector and hybrid search, and execute bulk data operations on an Astra DB database.

How to use Astra DB?

Install by running npx -y @datastax/astra-db-mcp with the required environment variables ASTRA_DB_APPLICATION_TOKEN and ASTRA_DB_API_ENDPOINT. Optionally set ASTRA_DB_KEYSPACE to target a specific keyspace. Add the server to an MCP client such as Claude Desktop or Cursor by editing their configuration JSON.

Key features of Astra DB

  • Collection management: create, update, delete, and list collections
  • Vector search and hybrid search on embeddings
  • CRUD operations on individual records
  • Bulk create, update, and delete records
  • Find records by field value and distinct values
  • Estimate document count in a collection

Use cases of Astra DB

  • Let an LLM agent read and write data to an Astra DB database
  • Power semantic search with vector similarity on embeddings
  • Perform hybrid retrieval combining vector and text queries
  • Manage and bulk-load records in collections via natural language

Frequently asked questions

1 What prerequisites are needed to run this server?

You need an active Astra DB database, an Astra DB Application Token, and the Astra DB API Endpoint. A free database can be created at the Astra DB registration page.

2 Which MCP clients are supported?

The README provides setup instructions for Claude Desktop and Cursor. Other MCP clients that accept a command-based server may also work.

3 How do I configure a specific keyspace?

Add the ASTRA_DB_KEYSPACE environment variable to the server configuration. If omitted, the default keyspace configured in the underlying Astra DB library is used.

4 Can I perform vector search with this server?

Yes. The server provides VectorSearch for similarity search on embeddings and HybridSearch that combines vector similarity with text search. Both support configurable limits, filters, and scoring.

5 What runtime environment does the server require?

It runs via npx (Node.js package runner). On Windows PowerShell, the command should use cmd /k npx because npx is a batch command.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬