{
  "$schema": "https://modelcontextprotocol.io/schema/manifest.json",
  "schemaVersion": "2025-06-18",
  "name": "rig",
  "title": "Rig",
  "description": "Governed access to your company's data warehouse and connected systems. Rig's MCP server gives an agent the context layer (tables, joins, certified metrics, business rules) plus validated SQL execution and write actions, under the caller's own role and full audit.",
  "version": "1.0.0",
  "vendor": {
    "name": "Rig Intelligence Inc.",
    "url": "https://rig.so",
    "contact": "https://rig.so/contact"
  },
  "documentation": "https://rig.so/developers",
  "servers": [
    {
      "name": "rig",
      "transport": "streamable-http",
      "url": "https://app.rig.so/mcp/{workspace}/",
      "urlTemplate": "https://app.rig.so/mcp/{workspace}/",
      "variables": {
        "workspace": {
          "description": "Your Rig workspace id. Shown in Rig under Settings → Integrations, next to the ready-made connect command."
        }
      },
      "authentication": {
        "type": "oauth2",
        "flow": "authorization_code",
        "pkce": true,
        "discovery": "https://app.rig.so/mcp/.well-known/oauth-protected-resource",
        "alternatives": [
          {
            "type": "bearer",
            "description": "Static workspace token (prefix rig_mcp_) sent as `Authorization: Bearer`. Issued in Rig under Settings → Integrations. Use for headless clients that cannot complete an OAuth flow."
          }
        ]
      },
      "requiresAccount": true,
      "setup": "https://rig.so/guides/connect-ai-tools"
    }
  ],
  "tools": [
    {
      "name": "get_business_context",
      "description": "Return the workspace's business context: areas, certified metrics, usage rules and guidance docs."
    },
    {
      "name": "search_tables",
      "description": "Find warehouse tables by name or meaning, with descriptions and row counts."
    },
    {
      "name": "search_columns",
      "description": "Find columns across the warehouse by name or meaning."
    },
    {
      "name": "inspect_table",
      "description": "Return a table's columns, types, descriptions and sample values."
    },
    {
      "name": "find_join",
      "description": "Return the join path between two tables from observed keys and lineage."
    },
    {
      "name": "search_metrics",
      "description": "Find certified metric definitions and the SQL behind them."
    },
    {
      "name": "generate_sql",
      "description": "Draft SQL for a question using the workspace's context layer."
    },
    {
      "name": "execute_sql",
      "description": "Run validated SQL against the warehouse under the caller's role and access policy."
    },
    {
      "name": "search_skills",
      "description": "Find saved skills: repeatable, governed pieces of analysis or reporting."
    },
    {
      "name": "load_skill",
      "description": "Load a saved skill's instructions so an agent can run it."
    },
    {
      "name": "list_actions",
      "description": "List the write actions available, such as CRM updates and notifications."
    },
    {
      "name": "execute_action",
      "description": "Run a write action against a connected system, subject to role and audit."
    },
    {
      "name": "manage_workflow",
      "description": "Create, update or inspect a scheduled workflow."
    },
    {
      "name": "propose_chart",
      "description": "Propose a chart specification for a result set."
    }
  ],
  "clients": [
    {
      "name": "Claude Code",
      "command": "claude mcp add --transport http rig https://app.rig.so/mcp/{workspace}/"
    },
    {
      "name": "Codex",
      "command": "codex mcp add rig --url https://app.rig.so/mcp/{workspace}/"
    },
    {
      "name": "Claude.ai",
      "instructions": "https://rig.so/guides/ask-in-claude"
    },
    {
      "name": "Cursor",
      "instructions": "https://rig.so/guides/connect-ai-tools"
    }
  ],
  "links": {
    "openapi": "https://rig.so/openapi.json",
    "llms": "https://rig.so/llms.txt",
    "developers": "https://rig.so/developers",
    "security": "https://rig.so/security"
  }
}
