DA

datastax/astra-db-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

43 stars 23 forks 品質 83 トレンド 8Apache-2.0

datastax/astra-db-mcp は [https://github.com/datastax/astra-db-mcp.] からインポートされた MCP サーバーの候補です

概要

datastax/astra-db-mcp は [https://github.com/datastax/astra-db-mcp.] からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

Astra DBとやり取りするためのモデルコンテキストプロトコル(MCP)サーバー。 MCP は、外部システムとエージェントとしてやり取りできるようにすることで、大きな言語モデル (LLM) の機能を拡張します。

前提条件

Astra DBデータベースの実行が必要です。 1つがない場合は、ここから無料のデータベースを作成できます。 そこから、必要な2つのことを得ることができます。

  1. アストラDBアプリケーショントークン
  2. Astra DB APIエンドポイント

これらを取得する方法を学ぶには、取得を開始したドキュメントをお読みください。

MCP クライアントに追加

MCP クライアントにこのサーバーを追加する方法は次のとおりです。

IBM ボブ

** IBM Bob** IDE, このドキュメントの手順に従ってください.

** IBM Bob ** シェルは、このドキュメントの手順に従ってください。

##Claudeデスクトップ

これをClaude Desktopに追加するには、環境設定 -> 開発者 -> Config を編集し、この JSON を claude_desktop_config.json に追加します。

任意Keyspace構成: デフォルトでは、このサーバーは、Astra DBライブラリ(典型的にdefault_keyspace])で構成されているキースペースを使用します。 特定のキースペースに接続する必要がある場合は、上記の[[ASTRA_DB_KEYSPACE]変数を[[env]]]オブジェクトに追加できます。

Windows PowerShell ユーザー:

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

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 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 IDE, follow the procedure at this documentation.

For IBM Bob 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 object above, like so:

"env": {
  "ASTRA_DB_APPLICATION_TOKEN": "your_astra_db_token",
  "ASTRA_DB_API_ENDPOINT": "your_astra_db_endpoint",
  "ASTRA_DB_KEYSPACE": "your_desired_keyspace"
}

Windows PowerShell Users: npx is a batch command so modify the JSON as follows:

  "command": "cmd",
  "args": ["/k", "npx", "-y", "@datastax/astra-db-mcp"],

Cursor

To add this to Cursor, go to Settings -> Cursor Settings -> MCP

From there, you can add the server by clicking the “+ Add New MCP Server” button, where you should be brought to an mcp.json file.

Tip: there is a ~/.cursor/mcp.json that represents your Global MCP settings, and a project-specific .cursor/mcp.json file that is specific to the project. You probably want to install this MCP server into the project-specific file.

GitHub で README 全文を見る

インストール

npx -y @datastax/astra-db-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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