Atlas / MCP servers / datastax / Astra DB

Astra DBSAFE

mcp/datastax/astra-db

An MCP server for Astra DB workloads

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
42 22r · 13w · 7d
Transport
stdio
License
Apache-2.0
Stars
42
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

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.

Prerequisites

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 docs.

Adding to an MCP client

Here's how you can add this server to your MCP client.

IBM Bob

For [IBM Bob](https://bob.ibm.com) IDE, follow the procedure at this documentation.

For [IBM Bob](https://bob.ibm.com) Shell, follow the procedure at this documentation.

Claude Desktop

To add this to Claude Desktop, go to Preferences -> Developer -> Edit Config and add this JSON blob to claude_desktop_config.json:

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

Optional Keyspace Configuration: By default, this server uses the keyspace configured in the underlying Astra DB library (typically default_keyspace). If you need to connect to a specific keyspace, you can add the ASTRA_DB_KEYSPACE variable to the `env

Read from source at commit 9a34d9206e9bOBSERVED · 2026-10-08
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add astra-db-mcp --env ASTRA_DB_APPLICATION_TOKEN=${ASTRA_DB_APPLICATION_TOKEN} --env ASTRA_DB_KEYSPACE=${ASTRA_DB_KEYSPACE} -- npx -y @datastax/[email protected]
claude-desktop
{
  "mcpServers": {
    "astra-db-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@datastax/[email protected]"
      ],
      "env": {
        "ASTRA_DB_APPLICATION_TOKEN": "${ASTRA_DB_APPLICATION_TOKEN}",
        "ASTRA_DB_KEYSPACE": "${ASTRA_DB_KEYSPACE}"
      }
    }
  }
}
03

Exposed tools (42)

22 read · 13 write · 7 destructive. Blast radius: 7 tools can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
AlterTabledestructiveAlter a table schema (add columns, drop columns, add vector columns)
BulkCreateRecordswriteCreate multiple records in a collection at once
BulkDeleteRecordsdestructiveDelete multiple records from a collection at once
BulkUpdateRecordswriteUpdate multiple records in a collection at once
CreateCollectionwriteCreate a new collection with optional vector, metric, auto-vectorize service, or indexing options
CreateKeyspacewriteCreate a new keyspace in the Astra DB database
CreateRecordwriteCreate a new record in a collection
CreateTablewriteCreate a structured table with typed columns and primary key in Astra DB
CreateTableIndexwriteCreate a regular secondary index on a table column
CreateTableVectorIndexwriteCreate a vector index on a vector column in a table
DeleteCollectiondestructiveDelete a collection from the database
DeleteRecorddestructiveDelete a record from a collection
DeleteTableRowdestructiveDelete one or multiple rows matching a filter from a table
DropKeyspacedestructiveDrop a keyspace from the Astra DB database
DropTabledestructiveDrop a table from the current keyspace
EstimateDocumentCountreadEstimate the number of documents in a collection using a fast, approximate count method
FindAndRerankreadPerform hybrid (lexical + vector) search with optional reranking on a collection
FindDistinctValuesreadFind distinct values for a field in a collection
FindRecordreadFind records in a collection by a single field value
FindWithFilterreadFind records in a collection using rich MongoDB-style filter expressions ($and, $or, $gt, $in, $exists, etc.) with sorting and pagination
FindWithVectorreadFind records via vector similarity search using raw vector embeddings
FindWithVectorizereadFind records in a vectorized collection using plain text (auto-vectorization using collection
GetCollectionInforeadGet metadata, options, vector settings, and defaultId type of a collection
GetCollectionsreadGet all collections in the active Astra DB keyspace
GetCurrentKeyspacereadGet the currently active keyspace
GetDatabaseInforeadGet database environment metadata (id, name, region, environment, status, keyspaces)
GetRecordreadGet a specific record from a collection by ID
HelpAddToClientwriteHelp the user add the Astra DB client to their MCP client
HybridSearchreadSearch for records using both vector similarity and text matching
InsertTableRowwriteInsert a single row or multiple rows into a table
ListEmbeddingProvidersreadList all available vector embedding providers and models supported by Astra DB Vectorize
ListKeyspacesreadList all keyspaces in the Astra DB database
ListRecordsreadList records from a collection with optional sorting, pagination, and projection
ListRerankingProvidersreadList all available reranking providers and models supported by Astra DB for hybrid search
ListTablesreadList all tables in the current keyspace
OpenBrowserreadOpen a web browser to a specific URL
QueryTablereadQuery rows in a table with filter, sorting, pagination, and projection
UpdateCollectionwriteUpdate an existing collection in the database
UpdateRecordwriteUpdate an existing record in a collection
UpdateTableRowwriteUpdate one or multiple rows matching a filter in a table
UseKeyspacereadSwitch the active working keyspace for subsequent queries
VectorSearchreadSearch for records in a collection using vector similarity
04

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (1 observation(s))
Network
declared (1 observation(s))
Shell
none-observed
Dependencies
not all pinned
Secrets in source
none-found

Findings (8)

MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
AlterTable, BulkDeleteRecords, DeleteCollection, DeleteRecord, DeleteTableRow, DropKeyspace, DropTable
Why it matters. 7 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/mocks/db.mock.ts:275
vi.mock("../../util/db.js", () => {
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/tools/BulkCreateRecords.test.ts:16
import { BulkCreateRecords } from "../../tools/BulkCreateRecords.js";
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/tools/BulkDeleteRecords.test.ts:16
import { BulkDeleteRecords } from "../../tools/BulkDeleteRecords.js";
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/tools/BulkUpdateRecords.test.ts:16
import { BulkUpdateRecords } from "../../tools/BulkUpdateRecords.js";
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/tools/CreateCollection.test.ts:16
import { CreateCollection } from "../../tools/CreateCollection.js";
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@datastax/astra-db-ts, @modelcontextprotocol/core, @modelcontextprotocol/server, dotenv, jsonschema, mcp-evals, @modelcontextprotocol/inspector, @types/node
Why it matters. 11 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWPrompt injection · prompt.credential_read · CWE-94, CWE-1427
README.md:157
The evals package loads an mcp client that then runs the index.ts file, so there is no need to rebuild between tests. You can load environment variables by prefixing the npx command. Full documentatio
Why it matters. asks the agent to read credentials

Gates applied: no_behavioural_pass.

Audited 2026-10-08 · audit v0.4.1 · source sha 9a34d9206e9bfull audit observations/trust-audit/mcp-server/datastax__astra-db.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-089a34d9206e9bSAFEB89first audit
06

Questions

What is the Astra DB MCP server?

An MCP server for Astra DB workloads

What tools does Astra DB expose?

42 in total: 22 read-only, 13 that write, and 7 that can delete or overwrite (AlterTable, BulkDeleteRecords, DeleteCollection, DeleteRecord, DeleteTableRow). Every one is listed on this page with its risk.

Is Astra DB safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 7 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does Astra DB need?

It reads ASTRA_DB_APPLICATION_TOKEN and ASTRA_DB_KEYSPACE from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does Astra DB run?

It speaks stdio, so it runs as a local process your client starts. It is published on npm as @datastax/astra-db-mcp at 1.3.4.

How current is this page?

The grade is for one exact copy of the source (9a34d9206e9b), read on 2026-10-08. The repository is watched and re-audited when it changes.

Advertisement