Developer integration guide

Use OpenMM MCP with Cursor IDE

Cursor can use MCP servers as a developer tool layer. OpenMM MCP lets a coding agent inspect exchange state, reason about strategies, and help build trading applications against real market primitives.

Install / configuration example

{
  "openmm": {
    "command": "npx",
    "args": ["@qbtlabs/openmm-mcp"],
    "env": {
      "OPENMM_EXCHANGE": "mexc",
      "OPENMM_API_KEY": "read_only_key",
      "OPENMM_API_SECRET": "secret"
    }
  }
}

Step-by-step setup

  1. 1. Install OpenMM MCP

    Use `npx @qbtlabs/openmm-mcp` or add it as a project dependency.

  2. 2. Register the MCP server

    Add OpenMM MCP to Cursor's MCP server configuration as a stdio command.

  3. 3. Expose safe credentials

    Use environment variables and prefer read-only exchange keys during development.

  4. 4. Ask Cursor to inspect tools

    Have Cursor list available MCP tools and test a ticker or order book call.

  5. 5. Build against OpenMM

    Use Cursor to generate dashboards, alerts, strategy scripts, or portfolio tooling on top of OpenMM.

Safety checklist

  • • Start with read-only API keys.
  • • Disable withdrawals on every exchange key.
  • • Use test/sandbox accounts or tiny balances for first live runs.
  • • Keep API keys in environment variables, never prompts or chat history.
  • • Log every tool call and execution result.

FAQ

Why use MCP inside Cursor?

MCP gives Cursor structured tools instead of asking it to invent exchange API calls from memory.

Can Cursor execute orders?

Only if the MCP server is configured with trading credentials. Keep development environments read-only unless you intentionally need execution.

Related docs and resources