MCP server

Quickstart

Connect AI tools to GPUs to develop faster

View Markdown
In just 60 seconds you can start developing on GPUs by connecting Cursor, Claude Code, etc. directly to our API. This allows your AI agent to help you set up and manage servers on your behalf.

Create an Account

Sign up for a Thunder account here.

Add a Payment Method

Add a payment method to your account.

Connect Your Agent

Use an AI agent that supports remote MCP servers (Claude Code, Cursor, Codex, etc.).

Claude code

Run this in your terminal:
claude mcp add --transport http thunder-compute ${THUNDER_MCP_URL}
Then start Claude Code and run /mcp to authenticate. A browser window will open for you to log in and authorize access.

Manual setup

Alternatively, add to ~/.claude.json (global) or .claude.json in your project root:
{
  "mcpServers": {
    "thunder-compute": {
      "url": "${THUNDER_MCP_URL}"
    }
  }
}

Codex

Run this in your terminal:
codex mcp add thunder-compute --url ${THUNDER_MCP_URL}
Codex will prompt you to authenticate via OAuth when you first use a Thunder tool.

Cursor

Add to .cursor/mcp.json in your project root (or ~/.cursor/mcp.json for global access):
{
  "mcpServers": {
    "thunder-compute": {
      "type": "http",
      "url": "${THUNDER_MCP_URL}"
    }
  }
}

Devin desktop

Add to your MCP configuration:
{
  "mcpServers": {
    "thunder-compute": {
      "serverUrl": "${THUNDER_MCP_URL}",
      "headers": {
        "Content-Type": "application/json"
      }
    }
  }
}

Opencode

1

Add the MCP server

Run the interactive setup:
opencode mcp add
When prompted:
  • Server name: thunder-compute
  • Server type: Remote
  • URL: ${THUNDER_MCP_URL}
  • Requires OAuth: Yes
  • Pre-registered client ID: No
2

Authenticate

opencode mcp auth thunder-compute
A browser window will open for you to log in and authorize access.
3

Start coding

opencode
The Thunder tools are now available in your session.

Manual setup

Alternatively, add to ~/.config/opencode/opencode.json:
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "thunder-compute": {
      "type": "remote",
      "url": "${THUNDER_MCP_URL}",
      "oauth": {}
    }
  }
}
Then run opencode mcp auth thunder-compute to authenticate.

Smithery

If you use an MCP client that supports Smithery, you can install directly:
npx @smithery/cli install @thunder-compute/thunder-compute
Or browse the Thunder listing on Smithery and click Install for your client.

Direct http

For custom integrations, the MCP server uses Streamable HTTP transport at a single endpoint. Authentication is via OAuth 2.0 with standard MCP discovery.Endpoint: ${THUNDER_MCP_URL}
curl -X POST ${THUNDER_MCP_URL} \
  -H "Authorization: Bearer <access-token>" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "initialize",
    "params": {
      "protocolVersion": "2025-03-26",
      "capabilities": {},
      "clientInfo": { "name": "my-agent", "version": "1.0.0" }
    },
    "id": 1
  }'

Try It Out

Once configured, ask your AI agent to:
  • “Spin up an A100 instance with PyTorch”
  • “List my running instances”
  • “Run nvidia-smi on my instance”
  • “How much have I spent this month?”
The MCP server gives your agent access to everything you would want to do with a GPU.

Next Steps