Astra DB MCP Server
OfficialAstra DB MCP 服务器
用于与 Astra DB 交互的模型上下文协议 (MCP) 服务器。MCP 扩展了大型语言模型 (LLM) 的功能,允许它们作为代理与外部系统交互。
先决条件
您需要一个正在运行的 Astra DB 数据库。如果您还没有,可以在这里创建一个免费的数据库。创建后,您可以获得以下两样东西:
Astra DB 应用程序令牌
Astra DB API 端点
要了解如何获取这些,请阅读入门文档。
Related MCP server: MongoDB MCP Server for LLMs
添加到 MCP 客户端
以下是如何将此服务器添加到您的 MCP 客户端。
克劳德桌面

要将其添加到Claude Desktop ,请转到 Preferences -> Developer -> Edit Config 并将此 JSON blob 添加到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"
}
}
}
}Windows PowerShell 用户: npx是一个批处理命令,因此请按如下方式修改 JSON:
"command": "cmd",
"args": ["/k", "npx", "-y", "@datastax/astra-db-mcp"],光标

要将其添加到Cursor ,请转至 Settings -> Cursor Settings -> MCP
从那里,您可以通过单击“+ 添加新 MCP 服务器”按钮来添加服务器,然后您将被带到一个mcp.json文件。
提示:有一个
~/.cursor/mcp.json文件代表您的全局 MCP 设置,以及一个项目专用的.cursor/mcp.json文件,该文件特定于项目。您可能需要将此 MCP 服务器安装到项目专用的文件中。
添加与 Claude Desktop 说明中所示的相同的 JSON。
或者,您可能会看到一个向导,您可以在其中输入以下值(对于基于 Unix 的系统):
名字:随便你
类型:命令
命令:
env ASTRA_DB_APPLICATION_TOKEN=your_astra_db_token ASTRA_DB_API_ENDPOINT=your_astra_db_endpoint npx -y @datastax/astra-db-mcp添加后,您的编辑器将完全连接到您的 Astra DB 数据库。
可用工具
该服务器提供以下与 Astra DB 交互的工具:
GetCollections:获取数据库中的所有集合CreateCollection:在数据库中创建一个新的集合UpdateCollection:更新数据库中现有的集合DeleteCollection:从数据库中删除集合ListRecords:列出数据库中集合的记录GetRecord:通过 ID 从集合中获取特定记录CreateRecord:在集合中创建新记录UpdateRecord:更新集合中的现有记录DeleteRecord:从集合中删除记录FindRecord:按字段值查找集合中的记录BulkCreateRecords:一次在集合中创建多个记录BulkUpdateRecords:一次更新集合中的多条记录BulkDeleteRecords:一次从集合中删除多条记录OpenBrowser:打开 Web 浏览器进行身份验证和设置HelpAddToClient:获取有关将 Astra DB 客户端添加到您的 MCP 客户端的帮助EstimateDocumentCount:获取集合中文档数量的估计值。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables LLMs to interact directly with MongoDB databases, allowing users to query collections, inspect schemas, and manage data through natural language.472MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables LLMs to interact directly with MongoDB databases, allowing users to query collections, inspect schemas, and manage data through natural language.47MIT

MCP TapData Serverofficial
FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables Large Language Models to access and interact with database connections, including viewing schemas and performing CRUD operations on connected databases.
MongoDB MCP Serverofficial
AlicenseBqualityAmaintenanceA Model Context Protocol server that enables AI assistants to interact with MongoDB Atlas resources through natural language, supporting database operations and Atlas management functions.2878,8361,112Apache 2.0
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
GibsonAI MCP server: manage your databases with natural language
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/datastax/astra-db-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server