Sequence/docs

MCP Setup

The Sequence MCP server is available as a hosted service at mcp.sequencemkts.com or can be run locally from the mcp-server/ directory. It supports both Streamable HTTP and stdio transports.


Prerequisites

You need a Sequence API key to authenticate MCP tool calls. Get one from the Terminal settings page or via the API.

Your key looks like: seq_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


Claude Desktop

Add the Sequence MCP server to your Claude Desktop configuration.

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{
  "mcpServers": {
    "sequence": {
      "url": "https://mcp.sequencemkts.com/mcp",
      "headers": {
        "Authorization": "Bearer seq_live_YOUR_API_KEY"
      }
    }
  }
}

Restart Claude Desktop after editing the configuration. The Sequence tools should appear in the tool list when you start a new conversation.

Warning

Claude Desktop caches MCP credentials at session start. If you change the API key or config, you must restart Claude Desktop for changes to take effect.


Claude Code

Add a .mcp.json file to your project root (or home directory for global access):

json
{
  "mcpServers": {
    "sequence": {
      "url": "https://mcp.sequencemkts.com/mcp",
      "headers": {
        "Authorization": "Bearer seq_live_YOUR_API_KEY"
      }
    }
  }
}

Or for local stdio mode:

json
{
  "mcpServers": {
    "sequence": {
      "command": "node",
      "args": ["/path/to/execution-engine/mcp-server/dist/index.js"],
      "env": {
        "SEQUENCE_API_KEY": "seq_live_YOUR_API_KEY",
        "SEQUENCE_API_URL": "https://api.sequencemkts.com",
        "MCP_TRANSPORT": "stdio"
      }
    }
  }
}
Note

Like Claude Desktop, Claude Code caches MCP connections at session start. Restart the session after modifying .mcp.json.


HTTP Mode (Generic MCP Clients)

For any MCP-compatible client that supports Streamable HTTP transport, point it at:

code
https://mcp.sequencemkts.com/mcp

Include your API key in the Authorization header:

code
Authorization: Bearer seq_live_YOUR_API_KEY

The server runs on port 3100 when hosted locally. Configure with environment variables:

VariableDefaultDescription
SEQUENCE_API_URLhttp://localhost:50052Central Coordinator URL
SEQUENCE_API_KEY--API key for authenticating with the CC
MCP_PORT3100HTTP server port
MCP_TRANSPORThttpTransport mode: http or stdio

Running Locally

1

Install dependencies

bash
cd mcp-server
npm install
2

Build

bash
npm run build
3

Run in HTTP mode

bash
SEQUENCE_API_KEY=seq_live_YOUR_KEY \
SEQUENCE_API_URL=https://api.sequencemkts.com \
npm run dev

The server starts on http://localhost:3100.

4

Run in stdio mode

bash
SEQUENCE_API_KEY=seq_live_YOUR_KEY \
SEQUENCE_API_URL=https://api.sequencemkts.com \
npm run dev:stdio

Reads from stdin, writes to stdout. Use this for Claude Desktop and Claude Code integrations.


Verifying the Connection

Once connected, ask the AI to run a simple tool call:

"What's the current BTC-USD NBBO?"

If the MCP connection is working, the AI will call get_nbbo with symbol: "BTC-USD" and return live bid/ask prices with venue attribution. If it fails, check:

  1. API key is correct and not expired
  2. The MCP config file has the right URL and headers
  3. Claude Desktop / Claude Code was restarted after config changes
  4. The MCP server is reachable (try curl https://mcp.sequencemkts.com/mcp)
Tip

The get_usage tool returns your current MCP call count and limits. Use it to monitor consumption during heavy analysis sessions.