Skip to main content
Glama

Kontra

The best ideas are forged under challenge. People know this: we argue, we push back, and what survives is sharper. An AI chat skips that step. It thinks on its own and tends to agree with you. Kontra puts the challenge back in. The moment you prompt, one or more AI debaters take the other side and argue it out with your assistant, so the answer you get has already been tested.

It runs as an MCP server. You bring your own API keys.

How it works

  1. You turn on kontra mode and ask a question.

  2. Your assistant writes its position and sends it to the debaters.

  3. Each debater replies in character with a stance and either "keep going" or "settled".

  4. After each round your assistant recaps where each side stands, answers the challenge, and runs another round, until the debate settles.

  5. Your assistant replies with a short, structured rundown: the positions and their strongest arguments, where the debate lands, and a recommendation.

The debate runs for as many rounds as it needs. A round limit stops it from running forever.

Related MCP server: brainstorm-mcp

Install

Easiest: one click (Claude Desktop)

No Node, no config files, no terminal.

  1. Download kontra.mcpb from the latest release.

  2. Open Claude Desktop, go to Settings, then Extensions.

  3. Drag kontra.mcpb into the window (or double-click the file).

  4. Paste your API key into the box when asked, and turn it on.

Claude Desktop bundles everything and stores your key in your operating system's secure storage.

Other MCP clients (Claude Code, Cursor, and more)

Kontra is a standard MCP server, so it works in any MCP client. You need Node 18 or newer. Add this server entry to the client's MCP config, then restart the client:

{
  "mcpServers": {
    "kontra": {
      "command": "npx",
      "args": ["-y", "mcp-kontra"],
      "env": { "ANTHROPIC_API_KEY": "sk-ant-..." }
    }
  }
}

Where each client keeps that config:

Client

Config

Claude Code

.mcp.json in your project, or run claude mcp add

Cursor

.cursor/mcp.json

Claude Desktop (manual)

Settings, then Developer, then Edit Config

Windsurf, Cline, and others

that client's MCP settings file

Some clients (such as VS Code's built-in MCP support) use a servers key instead of mcpServers. The command, args, and env are the same.

You start with one debater: a ruthless contrarian on Claude Opus 4.8.

Your API keys

Kontra never takes a key through the chat. It reads keys only from environment variables, set one of two ways:

  • One-click install: type the key into the secure form. It is stored by your operating system, not in a file.

  • Other clients: put the key in the env block of the server entry above.

A few notes:

  • You only need a key for the providers your debaters actually use. By default that is just Anthropic (Claude), so you are asked for one key, not three.

  • If a key is missing, Kontra tells your assistant which single key to add, and your assistant asks you for it in the chat.

  • Do not commit a config file that contains a real key.

  • After adding or changing a key, restart the client.

Use it

Say "kontra mode on" and ask a question. To change the debate, just ask in plain words, and your setup is saved until you change it. You can set the personas, the number of debaters (up to 5), each debater's provider and model, and the round limit (up to 12).

Examples

Real prompts, from quick gut-checks to bigger calls. Use the default challenger, or set up your own panel.

Product and engineering

kontra mode on. Planning to fix the slow dashboard with a 60-second cache. Before I build it, what am I missing?

kontra mode on. Going to mark this flaky test as skipped so CI stops blocking the team. Talk me out of it.

Commercial

kontra mode on. A customer about to churn asked for 20% off to stay, and I want to say yes. Argue the other side.

kontra mode on. Have a skeptical CFO and a growth-minded sales lead argue it out: should we offer net-60 terms to land a big deal?

Personal

kontra mode on. About to sign a 12-month lease at 40% of my take-home. Push back before I commit.

kontra mode on. Here's the message I drafted to a friend who keeps cancelling on me. What will I wish I'd changed?

Providers

Pick any debater's provider. Set the matching key (in the one-click form, or as an env var).

Provider

API key

Example models

anthropic

ANTHROPIC_API_KEY

claude-opus-4-8 (default), claude-sonnet-4-6

openai

OPENAI_API_KEY

gpt-5.5 (default), gpt-5.4-mini

google

GEMINI_API_KEY

gemini-3.5-flash (default), gemini-2.5-pro

Any model the provider offers works. If you name one that does not exist, Kontra tells you so you can fix it.

Tools

  • debate_status: shows your saved debaters, models, round limit, and which keys are set.

  • configure_debate: changes and saves the setup.

  • challenge: runs one round of debate.

Your assistant calls these for you. You just talk to it.

Where settings are saved

Kontra saves your setup to ~/.kontra/config.json. Point it somewhere else with the KONTRA_CONFIG environment variable.

Develop

git clone https://github.com/a1ex-bb/kontra.git
cd kontra
npm install
npm run build      # compile TypeScript to dist/
npm run bundle     # build kontra.mcpb for one-click install

Try the tools in a browser with the MCP Inspector. Set the key for whichever providers you want to exercise. Anthropic alone is enough for the default debater; add the others only if you configure debaters on them:

ANTHROPIC_API_KEY=sk-ant-... npm run inspect
# add OPENAI_API_KEY=... and/or GEMINI_API_KEY=... too if your debaters use them

License

MIT

Available Tools

3 tools
challengeChallenge my positionA

Present your position to the saved debaters and run a discussion before you answer. When the user has activated kontra mode (e.g. said "kontra mode on"), ALWAYS run this loop before answering substantive questions. The loop: (1) call with your position; (2) answer the debaters' questions directly, respond to their specific points, ask questions back where their objections are ambiguous, then call again with the FULL transcript (debater replies under their names, your own turns as speaker 'host'); (3) keep going for as many rounds as the debate needs. The 'status' field is 'settled' once every debater has nothing new to add (or the round cap is hit), or 'error' if every debater failed; never synthesize while it is 'continue'. If the result is an onboarding message about a missing API key, relay it to the user and stop; do not retry until they confirm the key is set. To change the debaters or round limit, use configure_debate (it saves). Follow the 'instruction' field in the result for how to format your final reply.

Inputs: topic (required), position (required), transcript.

configure_debateConfigure the debateA

Set and SAVE the debate setup. The settings persist across sessions until changed. Use this whenever the user wants to change who debates (their personalities, how many up to 5, which provider and model each uses) or the round limit (up to 12). Providers: anthropic, openai, google. Pass only the fields you want to change.

Inputs: debaters, max_rounds.

debate_statusDebate statusA

Show the saved debate setup (debaters, providers, models, round limit) and whether each provider's API key is set. Call this to confirm setup or when the user asks who is in the debate.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.5/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: 'challenge' runs the debate loop, 'configure_debate' modifies the setup, and 'debate_status' displays configuration and key status. No overlap in functionality.

    Naming Consistency5/5

    All tool names use a consistent lowercase_with_underscores pattern. The names clearly indicate their action and scope.

    Tool Count5/5

    Three tools perfectly scope the server's purpose: one for running debates, one for configuration, and one for status. This minimal set avoids bloat while covering the core functions.

    Completeness4/5

    The server covers the main debate workflow (run, configure, check status). A minor gap is the lack of a tool to stop a running debate or reset configuration, but these are not essential for the primary use case.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables Claude to consult over 17 AI platforms and 800,000+ models to provide alternative perspectives, code reviews, and diverse feedback. It features a unique personality system and supports multi-AI group discussions and debates directly within the chat interface.
      46
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables multi-round brainstorming debates between multiple AI models like GPT, DeepSeek, and Ollama to produce synthesized final outputs. Users can orchestrate parallel model interactions where AI agents critique and refine each other's ideas to reach a consolidated conclusion.
      7
      160 npm
      74
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Facilitates structured multi-agent debates with arguments, rebuttals, and judgments across multiple rounds, enabling diverse AI personas to engage in formal debate and collaborative problem-solving.
      1
      37 npm
      17
      MIT