sahil1115
MCP Serversahil1115public

mcp cassandra server

Model Context Protocol for cassandra database

Repository Info

0
Stars
2
Forks
0
Watchers
1
Issues
TypeScript
Language
MIT License
License

About This Server

Model Context Protocol for cassandra database

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

Cassandra MCP Server
This Model Context Protocol (MCP) server integrates the Apache Cassandra database with Claude Desktop, enabling database operations through natural language interactions.

  1. Running the Cassandra MCP Server with NPX First, publish your package to npm (or use it locally).
npx @sahil1115/mcp-cassandra-server

Required environment variables (set these before running or in a .env file):

export CASSANDRA_PASSWORD=your_password
export CASSANDRA_CONTACT_POINTS=host1,host2
export CASSANDRA_LOCAL_DC=your_datacenter
export CASSANDRA_KEYSPACE=your_keyspace  # optional
export CASSANDRA_USERNAME=your_username  # defaults to "cassandra"


2. Adding to the Claude Desktop Configuration

Add this to your Claude Desktop config file (usually claude-desktop.config.json):

{
  "tools": [
    {
      "name": "mcp-cassandra-server",
      "command": "npx @sahil1115/mcp-cassandra-server",
      "env": {
        "CASSANDRA_PASSWORD": "your_password",
        "CASSANDRA_CONTACT_POINTS": "host1,host2",
        "CASSANDRA_LOCAL_DC": "your_datacenter",
        "CASSANDRA_KEYSPACE": "your_keyspace"
      },
      "stdio": true
    }
  ]
}

Cassandra MCP Server Features This Model Context Protocol (MCP) server provides integration between Apache Cassandra database and Claude Desktop, enabling database operations through natural language interactions.

Tools

  1. execute_query: Execute CQL queries on the Cassandra database
  • Supports all types of CQL queries (SELECT, INSERT, UPDATE, DELETE)
  • Returns query results in a structured format
  • Parameters can be passed to prevent injection attacks
  1. create_table: Create a new table in the Cassandra database
  • Define table schema with column names and data types
  • Configure primary keys (simple or composite with partition and clustering keys)
  • Automatically creates the table if it doesn't exist
  1. insert_data: Insert data into Cassandra tables
  • Add new records to existing tables
  • Supports all Cassandra data types
  • Auto-converts JavaScript types to Cassandra types
  1. update_data: Update existing data in Cassandra tables
  • Modify records based on specified conditions
  • Update multiple columns in a single operation
  • Uses parameterized queries for safety
  1. delete_data: Remove data from Cassandra tables
  • Delete records based on specified conditions
  • Delete single or multiple records in one operation
  1. list_tables: List all tables in the current keyspace
  • Get an overview of available tables
  • Quick schema discovery

Usage Examples

Here are examples of how you can interact with the Cassandra database using natural language:

Querying Data

You can ask questions like:

  • "Show me all users from the 'users' table"
  • "Find the latest 10 orders from customer 'ABC123'"
  • "What's the average age of users in the 'customers' table?"

Creating Tables

You can give instructions like:

  • "Create a new 'products' table with columns for id, name, price, and category"
  • "Set up a users table with email as the primary key"
  • "Create a time series table for temperature readings with device_id and timestamp as the primary key"

Inserting Data

You can request data insertions like:

  • "Add a new user named Sarah Smith with email sarah@example.com and age 32"
  • "Insert a product with ID 12345, name 'Wireless Earbuds', price $99.99"
  • "Add a new temperature reading of 72.5°F for device ABC at the current time"

Updating Data

You can ask for updates like:

  • "Update user john@example.com to have phone number 555-123-4567"
  • "Change the price of product 12345 to $89.99"
  • "Mark all orders from customer ABC123 as 'shipped'"

Deleting Data

You can request deletions like:

  • "Delete user with email john@example.com"
  • "Remove all products in the 'discontinued' category"
  • "Delete temperature readings older than January 1st, 2023"

Complex Operations

You can perform more complex operations with natural language:

  • "Find all orders placed by customers in New York in the last month."
  • "Calculate the total sales by category for the current quarter."
  • "List the top 5 most active users based on login count."

Quick Start

1

Clone the repository

git clone https://github.com/sahil1115/mcp-cassandra-server
2

Install dependencies

cd mcp-cassandra-server
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownersahil1115
Repomcp-cassandra-server
LanguageTypeScript
LicenseMIT License
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation