---
title: "Databricks MCP — Claude & ChatGPT Connector"
method: POST
path: "/api/mcp/databricks"
tags: ["MCP Server"]
---

# Databricks MCP — Claude & ChatGPT Connector

`POST /api/mcp/databricks`

**MCP Databricks Endpoint (ChatGPT & Claude Connector)**

**URL:** `POST /api/mcp/databricks`

**Header:**
- `Mcp-Session-Id` (optional but recommended) — will be echoed back in every response.

**Methods Supported (`method`):**
- `initialize`
- `notifications/initialized`
- `ping`
- `tools/list`
- `tools/call`

**Example — List tools:**
```json
{ "jsonrpc": "2.0", "method": "tools/list", "params": {}, "id": 1 }
```

**Example — Call tool:**
```json
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": { "name": "list_tables", "arguments": { "database": "datamarts", "schema": "gold" } },
  "id": 1
}
```

**Tools**
- `list_databases_and_schemas`
- `list_tables`
- `describe_table`
- `query_table`
- `execute_custom_query`
- `search_tables`
- `get_column_info`

**Security**
- Read-only enforced (blocks INSERT/UPDATE/DELETE/CREATE/DROP/etc.)
- Row limit enforced
- Session header echoed to prevent ChatGPT link expiry

## Headers

- `Mcp-Session-Id` string, nullable

## Request body

- MCPRequest
  - `jsonrpc` string — JSON-RPC version. Always '2.0'
  - `method` string — MCP method: initialize | tools/list | tools/call
  - `params` object, nullable — Method parameters. For tools/call: { name, arguments }
  - `id` integer, nullable — Request ID. Echoed back in response.

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi.md) · [All operations](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/leapsurgebi/leapsurgeapi/revisions/5a6b1464bfeb/schema)
