Qmcp MCP Server

A Model Context Protocol (MCP) server for q/kdb+ integration.

Local serverstdioPython

What is the Qmcp MCP Server?

A Model Context Protocol (MCP) server for q/kdb+ integration.

What you get

  • Connect to q/kdb+ servers
  • Execute q queries and commands
  • Persistent connection management
  • Intelligent async query handling with configurable timeouts
  • Programmatic query cancellation (Ctrl+C equivalent)
  • Graceful handling of long-running queries

Configuration and credentials

  • Python 3.8+ - Access to a q/kdb+ server - uv (for lightweight installation) or pip (for full installation)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
connect_to_qStable connection management with fallback logic
query_qExecute queries with intelligent async timeout control
set_timeout_switch_to_asyncConfigure when queries switch to async mode
set_timeout_interrupt_qConfigure when to send SIGINT to cancel queries
set_timeout_connectionConfigure connection timeout
get_timeout_settingsView current timeout configuration
get_current_task_statusCheck status of running async query
get_current_task_resultRetrieve result of completed async query
interrupt_current_querySend SIGINT to interrupt running queries
translate_qython_to_q⚠️ EXPERIMENTAL: Python-like syntax to q translator
translate_q_to_qython⚠️ EXPERIMENTAL: Q code to Python-like translator with AI disambiguation

How to install the Qmcp MCP Server

{
  "mcpServers": {
    "qmcp": {
      "command": "qmcp"
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • Python 3.8+ - Access to a q/kdb+ server - uv (for lightweight installation) or pip (for full installation)

Frequently asked questions

A Model Context Protocol (MCP) server for q/kdb+ integration. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.