MCP Integration

Connect Claude, Cursor, Claude Code, or VS Code to gehirn.md with the Model Context Protocol. The server speaks streamable HTTP at https://www.gehirn.md/api/mcp. Use that host. A redirect from the apex domain drops the Authorization header.

MCP is included in every plan (Ion, Synapse, Kortex, Gehirn, Big Brain) and during the 7-day free trial.

Getting started

  1. Create a personal access token

    Go to Settings → Integrations, switch to Account integrations, and create a token in the MCP section. It is shown once. You can keep up to 10 active tokens.

  2. Point the client at the www host

    Paste the snippet for your client below. Replace YOUR_TOKEN_HERE. Public analysis tools also work with no token.

Cursor

Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project. Cursor reads url plus headers for a remote HTTP server.

{
  "mcpServers": {
    "gehirn": {
      "url": "https://www.gehirn.md/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_TOKEN_HERE"
      }
    }
  }
}

Claude Code

Register the server from the shell. --header sends the bearer token. Check it with claude mcp list.

claude mcp add --transport http gehirn https://www.gehirn.md/api/mcp \
  --header "Authorization: Bearer YOUR_TOKEN_HERE"

VS Code

VS Code uses a top-level servers object, not mcpServers. Put this in .vscode/mcp.json or in your user mcp.json.

{
  "servers": {
    "gehirn": {
      "type": "http",
      "url": "https://www.gehirn.md/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_TOKEN_HERE"
      }
    }
  }
}

Claude Desktop

claude_desktop_config.json launches local commands. It does not take a remote url field. This config runs mcp-remote and puts the bearer token in env, because a space inside args is mangled on some desktops.

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "gehirn": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://www.gehirn.md/api/mcp",
        "--header",
        "Authorization:${GEHIRN_TOKEN}"
      ],
      "env": {
        "GEHIRN_TOKEN": "Bearer YOUR_TOKEN_HERE"
      }
    }
  }
}

Restart Claude Desktop after saving. Settings → Connectors → Add custom connector can point at the same URL, but that screen does not take a bearer token, so account tools stay unavailable there.

Tools

Twenty-two tools. Account tools need a trialing or active plan. Article credits and the other quotas of that plan still apply. There is no separate planning tool: content plans come out of start_write.

Projects

  • list_projects

    List the projects on the signed-in account.

    token required · no article credit

  • get_project_file

    Read COMPANY.md, TONE.md, DESIGN.md, REDDIT.md, or SITEMAP.md for one project.

    token required · no article credit

  • create_project

    Create a project from a homepage URL and start the same onboarding files as the dashboard.

    token required · no article credit

  • get_project_setup

    Poll a create_project run until the project exists and report which files are ready.

    token required · no article credit

Tresor

  • tresor_list_signals

    List researched Reddit signals in the Tresor, including subreddit and redditUrl.

    token required · no article credit

  • tresor_list_plans

    List content plans stored in a project's Tresor.

    token required · no article credit

  • tresor_get_plan

    Read one content plan, including its markdown and suggested internal links.

    token required · no article credit

  • tresor_list_articles

    List Tresor articles grouped by plan, with every saved version.

    token required · no article credit

  • tresor_get_article

    Read one saved article version, including its markdown.

    token required · no article credit

  • tresor_list_sections

    List short sections saved in a project's Tresor.

    token required · no article credit

  • tresor_get_section

    Read one saved Tresor section, including its markdown.

    token required · no article credit

Content jobs

  • start_research

    Start Reddit trend research for a project.

    token required · 1 article credit, at most once per project per day

  • start_write

    Start a writing job. mode is topic, signal, brainstorm, plan, or section. Plans come from this tool.

    token required · 1 article credit

  • rewrite_article

    Rewrite an existing Tresor article from instructions. Asks no questions.

    token required · 1 article credit

  • get_job

    Read a content job, including pending questions and a draft when one is ready.

    token required · no article credit

  • list_jobs

    List recent content jobs. activeOnly keeps jobs that are running or waiting for answers.

    token required · no article credit

  • answer_job

    Submit answers for the job's current questions, including draft approval.

    token required · no article credit

  • cancel_job

    Cancel a running job or one that is waiting for answers.

    token required · no article credit

Analysis

  • generate_company_md

    Generate COMPANY.md from a homepage URL. Cached per hostname.

    no token · no article credit

  • get_cached_company_md

    Return cached COMPANY.md for a hostname, or null when none exists.

    no token · no article credit

  • analyze_tone_of_voice

    Analyze a homepage and return brand-voice guidance as TONE.md.

    no token · no article credit

  • analyze_design_system

    Analyze a homepage and return a DESIGN.md summary of colors, type, and UI patterns.

    no token · no article credit

Questions and draft review

  1. start_research or start_write returns a job. If it is still running, poll get_job.
  2. When the job needs input, get_job includes the questions. Show them to the person, then send the answers with answer_job.
  3. When a draft is included, show that full draft before asking for approval. Approving or requesting one revision does not spend another article credit.

Security

  • A token can use every account tool on that account. It cannot read another account.
  • Do not commit tokens or paste them in public channels.
  • Revoke a token from Settings → Integrations. The limit is 10 active tokens.
  • generate_company_md, get_cached_company_md, analyze_tone_of_voice, and analyze_design_system work without a token and are rate-limited by IP.

Credits

start_research, start_write, and rewrite_article each use one article credit. start_research also runs at most once per project per day. Reading projects, the Tresor, or job status does not use a credit. Without a trialing or active plan, account tools return “Start a plan.”

Troubleshooting

  • 401. The bearer token is missing, revoked, or not a gehirn.md token. Create a new one and put it in the Authorization header as Bearer followed by a space.
  • Authorization disappears. The client called https://gehirn.md and followed a redirect. Use https://www.gehirn.md/api/mcp. Redirects drop the Authorization header.
  • Start a plan. The account has a token, but the subscription is not trialing or active.

Support

support@gehirn.md · Deutsch