MCP Server

Polyhedral exposes an MCP (Model Context Protocol) server so AI coding assistants can read and write your game data — notes, encounters, library resources, dice rolls, and more.

Prerequisites

  1. A paid plan. MCP access and API keys are not available on the free plan.
  2. Open Connected Apps from your avatar menu and create an API key.
  3. Copy the key — you will not be able to see it again.

Claude Code

Add this to your .mcp.json:

{
  "mcpServers": {
    "polyhedral": {
      "type": "url",
      "url": "https://polyhedral.co/api/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_API_KEY>"
      }
    }
  }
}

Cursor / Windsurf

Same configuration format — add to your project or global MCP settings:

{
  "mcpServers": {
    "polyhedral": {
      "type": "url",
      "url": "https://polyhedral.co/api/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_API_KEY>"
      }
    }
  }
}

Available Tools

Resources

The server also exposes MCP resources for browsing game data:

For more about the protocol, see the MCP specification.