> ## Documentation Index
> Fetch the complete documentation index at: https://docs.thor.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Server

> Connect Thor to Cursor, Claude and other MCP-compatible clients to use Thor as the data source for your AI workflows.

export const McpResult = ({children}) => <div className="hidden group-data-[chat=mcp]:block font-mono text-[13px] leading-relaxed mt-4">
    <div className="mb-1.5 flex items-center gap-2">
      <span className="rounded px-1.5 py-0.5 text-[10px] font-bold uppercase tracking-wide bg-[#1f6feb]/25 text-[#79c0ff] border border-[#1f6feb]/40">
        thor
      </span>
      <span className="text-[11px] text-[#8b949e]">response</span>
    </div>
    <div className="rounded-md border border-[#1f6feb]/35 bg-[#0d1117] px-3 py-2.5 border-l-[3px] border-l-[#1f6feb]">
      <div className="min-w-0 text-[#c9d1d9] whitespace-pre-wrap">{children}</div>
    </div>
  </div>;

export const McpPrompt = ({children}) => <div className="hidden group-data-[chat=mcp]:block font-mono text-[13px] leading-relaxed">
    <div className="mb-1.5 flex items-center gap-2">
      <span className="rounded px-1.5 py-0.5 text-[10px] font-bold uppercase tracking-wide bg-[#238636]/25 text-[#3fb950] border border-[#238636]/40">
        you
      </span>
      <span className="text-[11px] text-[#8b949e]">prompt</span>
    </div>
    <div className="rounded-md border border-[#30363d] bg-[#161b22] px-3 py-2.5">
      <div className="flex gap-2">
        <span className="shrink-0 select-none text-[#3fb950] font-bold">›</span>
        <div className="min-w-0 text-[#e6edf3]">{children}</div>
      </div>
    </div>
  </div>;

export const Conversation = ({channel = "general", type = "channel", defaultPlatform, platforms = "slack,teams,mcp", children}) => {
  const available = platforms.split(",").map(p => p.trim()).filter(Boolean);
  const initial = defaultPlatform && available.includes(defaultPlatform) ? defaultPlatform : available[0] || "slack";
  const [platform, setPlatform] = useState(initial);
  const thorAvatar = "/images/thor-icon.svg";
  const isDm = type === "dm";
  const title = isDm ? "Thor" : channel.replace(/^#/, "");
  const showTabs = available.length > 1;
  const tabClass = active => `inline-flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-xs font-medium transition-colors ${active ? "bg-white dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 shadow-sm" : "text-zinc-500 hover:text-zinc-800 dark:hover:text-zinc-200"}`;
  const slackIcon = () => <svg viewBox="0 0 20 20" className="h-3.5 w-3.5" aria-hidden="true">
      <path fill="currentColor" d="M4.5 12.7a1.6 1.6 0 1 1-1.6-1.6h1.6v1.6zm.8 0a1.6 1.6 0 1 1 3.2 0v4a1.6 1.6 0 1 1-3.2 0v-4zM7.3 4.5a1.6 1.6 0 1 1 1.6-1.6v1.6H7.3zm0 .8a1.6 1.6 0 1 1 0 3.2h-4a1.6 1.6 0 1 1 0-3.2h4zM15.5 7.3a1.6 1.6 0 1 1 1.6 1.6h-1.6V7.3zm-.8 0a1.6 1.6 0 1 1-3.2 0v-4a1.6 1.6 0 1 1 3.2 0v4zM12.7 15.5a1.6 1.6 0 1 1-1.6 1.6v-1.6h1.6zm0-.8a1.6 1.6 0 1 1 0-3.2h4a1.6 1.6 0 1 1 0 3.2h-4z" />
    </svg>;
  const teamsIcon = () => <svg viewBox="0 0 20 20" className="h-3.5 w-3.5" aria-hidden="true">
      <path fill="currentColor" d="M11.2 4.2a2.4 2.4 0 1 1 2.5 2.4h-.1a2.4 2.4 0 0 1-2.4-2.4zm-6.3.6a2.1 2.1 0 1 1 2.2 2h-.1a2.1 2.1 0 0 1-2.1-2zm6.5 3.4h4.2c.8 0 1.4.6 1.4 1.4v4.1a3.4 3.4 0 0 1-3.4 3.4h-.3A4.3 4.3 0 0 0 17 13.2V8.8c0-.9-.7-1.6-1.6-1.6h-4zm-6.6.3h4.6c.7 0 1.3.6 1.3 1.3v5.1A3.7 3.7 0 0 1 7 18.6H6.3A3.7 3.7 0 0 1 2.6 14.9V9.8c0-.7.6-1.3 1.3-1.3z" />
    </svg>;
  const mcpIcon = () => <svg viewBox="0 0 20 20" className="h-3.5 w-3.5" aria-hidden="true">
      <path fill="currentColor" d="M4 5.5A1.5 1.5 0 0 1 5.5 4h9A1.5 1.5 0 0 1 16 5.5v9a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 4 14.5v-9zM6 7v1.5h1.75V7H6zm3.25 0v1.5H11V7H9.25zM12.5 7v1.5H14.25V7H12.5zM6 10v1.5h8.25V10H6zm0 3v1.5h5V13H6z" />
    </svg>;
  let frame;
  if (platform === "mcp") {
    frame = <div className="overflow-hidden rounded-xl border border-zinc-700 shadow-sm not-prose bg-[#0d1117]">
        <div className="flex items-center gap-2 border-b border-zinc-700/80 bg-[#161b22] px-3 py-2">
          <div className="flex items-center gap-1.5">
            <span className="h-2.5 w-2.5 rounded-full bg-[#ff5f56]" />
            <span className="h-2.5 w-2.5 rounded-full bg-[#ffbd2e]" />
            <span className="h-2.5 w-2.5 rounded-full bg-[#27c93f]" />
          </div>
          <div className="min-w-0 flex-1 text-center font-mono text-[11px] text-[#8b949e] truncate">
            thor mcp — cursor / claude
          </div>
          <div className="w-10" />
        </div>
        <div className="px-4 py-4 space-y-1 min-h-[7rem]">
          <div className="font-mono text-[11px] text-[#8b949e] mb-3">
            <span className="text-[#79c0ff]">mcp</span>
            <span className="text-[#8b949e]">:</span>
            <span className="text-[#a5d6ff]">thor</span>
            <span className="text-[#8b949e]">$ </span>
            <span className="text-[#c9d1d9]">ask</span>
          </div>
          {children}
          <div className="font-mono text-[13px] text-[#7ee787] mt-4 animate-pulse">
            ▍
          </div>
        </div>
      </div>;
  } else if (platform === "teams") {
    frame = <div className="overflow-hidden rounded-xl border border-zinc-200 dark:border-zinc-700 shadow-sm not-prose">
        <div className="flex items-center gap-2.5 bg-[#5B5FC7] px-3 py-2.5">
          {isDm ? <img src={thorAvatar} alt="" className="h-6 w-6 rounded-full bg-white/90 p-0.5 object-contain" /> : <div className="flex h-6 w-6 items-center justify-center rounded bg-white/15 text-white text-xs font-bold">
              #
            </div>}
          <div className="min-w-0">
            <div className="text-sm font-semibold text-white truncate">
              {title}
            </div>
            <div className="text-[11px] text-white/70">
              {isDm ? "Chat · Microsoft Teams" : "Microsoft Teams"}
            </div>
          </div>
        </div>
        <div className="bg-[#F5F5F5] dark:bg-[#1F1F1F] px-3 py-3 space-y-3">
          {children}
        </div>
      </div>;
  } else {
    frame = <div className="overflow-hidden rounded-xl border border-zinc-200 dark:border-zinc-700 shadow-sm not-prose">
        <div className="flex items-center gap-2 border-b border-zinc-200 dark:border-zinc-700 bg-white dark:bg-[#1A1D21] px-3 py-2.5">
          {isDm ? <img src={thorAvatar} alt="" className="h-5 w-5 rounded bg-[#D9E3E6] p-0.5 object-contain" /> : <span className="text-zinc-500 dark:text-zinc-400 text-lg leading-none">
              #
            </span>}
          <span className="text-sm font-bold text-zinc-900 dark:text-zinc-100">
            {title}
          </span>
        </div>
        <div className="bg-white dark:bg-[#1A1D21] px-2 py-3 space-y-1">
          {children}
        </div>
      </div>;
  }
  return <div className="my-4 not-prose group" data-chat={platform}>
      {showTabs ? <div className="mb-2 inline-flex flex-wrap items-center rounded-lg border border-zinc-200 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 p-0.5">
          {available.includes("slack") ? <button type="button" onClick={() => setPlatform("slack")} className={tabClass(platform === "slack")}>
              {slackIcon()}
              Slack
            </button> : null}
          {available.includes("teams") ? <button type="button" onClick={() => setPlatform("teams")} className={tabClass(platform === "teams")}>
              {teamsIcon()}
              Teams
            </button> : null}
          {available.includes("mcp") ? <button type="button" onClick={() => setPlatform("mcp")} className={tabClass(platform === "mcp")}>
              {mcpIcon()}
              MCP
            </button> : null}
        </div> : null}

      {frame}

      {platform === "mcp" && showTabs ? <p className="mt-2 text-xs text-zinc-500 dark:text-zinc-400">
          Same workflows via Thor's{" "}
          <a href="/usecases/mcp" className="underline underline-offset-2">
            MCP server
          </a>{" "}
          in Cursor, Claude, or any MCP client.
        </p> : null}
    </div>;
};

# What is the Thor MCP server?

<iframe className="w-full aspect-video rounded-xl" src="https://www.youtube.com/embed/b0y61mn8HXE" title="YouTube video player" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />

Thor's [Model Context Protocol](https://modelcontextprotocol.io/) (MCP) server exposes Thor's capabilities to any MCP-compatible AI client — including Cursor, Claude Desktop, and custom integrations.

Instead of building and maintaining your own multi-MCP data pipeline that stitches together GitHub, Linear, calendar, meeting transcripts, Slack and more, you can point your AI client at a single endpoint. Thor handles the cross-tool reasoning, permissions and context for you, so the answers your coding agent or chat client gets are faster, cheaper, more accurate and more reliable.

# What you can do with it

Once connected, your MCP client gets access to Thor's core capabilities:

* **Ask Thor any question** it can already answer in Slack — about issues, projects, documents, teams, meetings and decisions.
* **Pull your daily standup summary** (or a teammate's, with the right permissions) directly into your editor or chat.
* **Add notes, blockers and updates** to your standup without leaving your editor.

# Connect your client

Cursor, Claude Code, and any other MCP-compatible client connect to Thor the same way: add a `Thor` entry to your client's `mcp.json` configuration file pointing at your organization's Thor MCP URL.

```json theme={null}
{
  "mcpServers": {
    "Thor": {
      "type": "http",
      "url": "https://<tenant>.thor.ai/mcp"
    }
  }
}
```

<Note>Replace `<tenant>` with `app` or your single-tenant subdomain name. If you're not sure what your URL is, contact <a href="mailto:support@thor.ai">[support@thor.ai](mailto:support@thor.ai)</a>.</Note>

Some clients, like Claude Desktop, don't fully support standardized http/oauth connections yet. If you use Claude Desktop, or the config above doesn't work for you, you can install [mcp-remote](https://www.npmjs.com/package/mcp-remote) and use the following config instead:

```json theme={null}
{
  "mcpServers": {
    "Thor": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://<tenant>.thor.ai/mcp"
      ]
    }
  }
}
```

The first time your client connects, you'll be redirected through an OAuth flow — sign in with the Slack account you use for Thor. There are no API keys to manage.

# Authentication and permissions

The MCP server resolves your identity from your OAuth login and applies the same organization and channel permissions as the Thor Slack app — you'll only see data you already have access to in Thor.

# Use cases

## Pull team context into your coding agent

When delegating a task to a coding agent (see [Tasks → Delegate to coding agents](/usecases/tasks)), the agent can use Thor over MCP to load the full context for the issue — related discussions, prior decisions in meetings, linked PRs, and recent activity from teammates working on adjacent code.

<Conversation platforms="mcp" defaultPlatform="mcp">
  <McpPrompt>
    Use the Thor MCP to find all conversations and relevant context for issue #123 — related Slack threads, meeting decisions and recent activity — then include those in your proposed code plan.
  </McpPrompt>

  <McpResult>
    Context for #123
    • #eng thread (Apr 3) — auth redirect flake on mobile
    • Platform sync (Mar 12) — stay on current stack for now
    • Adjacent: PR #482 (token refresh), ENG-1849 (invoice export)
  </McpResult>
</Conversation>

## Standup summaries and daily briefings

Skip the context switch to Slack. Ask your MCP client to fetch your standup or daily briefing directly:

<Conversation platforms="mcp" defaultPlatform="mcp">
  <McpPrompt>
    Use the Thor MCP to get my standup for today and call out what needs my attention.
  </McpPrompt>

  <McpResult>
    Auth migration — PR #482 needs design review on logout redirect
    Billing — ENG-1849 waiting on Sam
    Attention: unblock #482 before the 3pm sync
  </McpResult>
</Conversation>

## Keep your project management system up-to-date

If you're heads-down in your editor and need to update Linear with your progress, your MCP client can post it back to Thor:

<Conversation platforms="mcp" defaultPlatform="mcp">
  <McpPrompt>
    Use the Thor MCP to update Linear to reflect that I'm working on issue #123 and note where the latest blocker is.
  </McpPrompt>

  <McpResult>
    Updated #123 → In Progress
    Blocker noted: waiting on design review for logout redirect
  </McpResult>
</Conversation>
