MCP Server

28SV SQL Server MCP — Claude & ChatGPT Connector

Changed on

MCP 28SV SQL Server Endpoint (Claude & ChatGPT Connector)

Read-only access to the 28SV SQL Server database.

**URL:** `POST /api/mcp/28SV`

**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:**
    { "jsonrpc": "2.0", "method": "tools/list", "params": {}, "id": 1 }
**Example — Call tool:**
    {
      "jsonrpc": "2.0",
      "method": "tools/call",
      "params": { "name": "sv28_list_tables", "arguments": {} },
      "id": 1
    }
**Tools**
- `sv28_list_tables`
- `sv28_describe_table`
- `sv28_execute_query`
- `sv28_list_schemas`
- `sv28_get_table_stats`
- `sv28_search_tables`

**Security**
- Read-only enforced (SELECT / WITH…SELECT only)
- DML/DDL blocked
- Multiple statements blocked
- Max rows limited (default 200, max 1000)
- Session header echoed to prevent ChatGPT link expiry

**Required env vars:** `MSSQL_SERVER` (shared), `MSSQL_28SV_DATABASE`, `MSSQL_28SV_USER`, `MSSQL_28SV_PASSWORD`
post/api/mcp/28SV

Request

Headers

Mcp-Session-Idstring nullable

Request body

jsonrpcstring

JSON-RPC version. Always '2.0'

methodstring

MCP method: initialize | tools/list | tools/call

paramsobject nullable

Method parameters. For tools/call: { name, arguments }

idinteger nullable

Request ID. Echoed back in response.

Response

Successful Response

unknown required

Changes