Connect to AI
Databases Bearer Token

Apache Cassandra REST API

Distributed NoSQL database for scalable applications

Apache Cassandra is a highly scalable, distributed NoSQL database designed to handle large amounts of data across many commodity servers with no single point of failure. It provides high availability and linear scalability, making it ideal for mission-critical applications that require continuous uptime and massive data volumes. Developers use Cassandra's REST API (via Stargate or similar data gateways) to interact with the database without native drivers.

Base URL https://api.cassandra.example.com/v2

API Endpoints

MethodEndpointDescription
GET/keyspacesList all keyspaces in the Cassandra cluster, returning keyspace names and replication configurations.
POST/keyspacesCreate a new keyspace with replication settings
GET/keyspaces/{keyspace}/tablesList all tables in a specific keyspace, returning table names and column families.
POST/keyspaces/{keyspace}/tablesCreate a new table within a keyspace, requiring primary key and column definitions in the request body.
GET/keyspaces/{keyspace}/tables/{table}/rowsRetrieve rows from a table with optional filtering
POST/keyspaces/{keyspace}/tables/{table}/rowsInsert a new row into a table, requiring all primary key columns and optional data columns.
PUT/keyspaces/{keyspace}/tables/{table}/rows/{primaryKey}Update an existing row by primary key, modifying specified columns while preserving others.
DELETE/keyspaces/{keyspace}/tables/{table}/rows/{primaryKey}Delete a row from a table by primary key
POST/keyspaces/{keyspace}/tables/{table}/queryExecute a CQL query against a table, accepting SELECT, INSERT, UPDATE, or DELETE statements in the body.
GET/keyspaces/{keyspace}/tables/{table}/schemaRetrieve the schema definition for a specific table
POST/keyspaces/{keyspace}/batchExecute multiple operations in a single batch request
GET/healthCheck the health status of the Cassandra API gateway, returning node availability and connection status.
DELETE/keyspaces/{keyspace}Drop a keyspace and all its tables, permanently removing all contained data.
DELETE/keyspaces/{keyspace}/tables/{table}Drop a specific table from a keyspace, permanently deleting the table and all its rows.
GET/metricsRetrieve cluster metrics and performance statistics, including read/write latency and throughput.

Code Examples

curl -X GET 'https://api.cassandra.example.com/v2/keyspaces/userdata/tables/users/rows?page-size=20' \
  -H 'Authorization: Bearer YOUR_AUTH_TOKEN' \
  -H 'Content-Type: application/json'

Use Apache Cassandra from Claude / Cursor / ChatGPT

Get a hosted MCP endpoint for Apache Cassandra. Paste your Apache Cassandra API key, copy back one URL, drop it into Claude Desktop, Cursor, or any AI client that supports remote MCP. Your AI calls Apache Cassandra directly with your credentials — no local install, works on mobile.

query_cassandra_table Execute CQL queries against Cassandra tables with natural language input, automatically translating to proper CQL syntax
create_cassandra_keyspace Create new keyspaces with intelligent replication strategy recommendations based on cluster topology
batch_insert_rows Perform batch insertions with automatic partitioning and optimal batch size calculation for performance
analyze_table_schema Analyze table schemas and provide recommendations for partition key optimization and data modeling
monitor_cluster_health Monitor cluster health metrics and provide intelligent alerts for performance degradation or node issues

Connect in 60 seconds

Paste your Apache Cassandra key → get an MCP URL → paste into Claude/Cursor. Hosted by IOX, encrypted at rest.

Connect Apache Cassandra to your AI →

Related APIs