thinkexchange-mcp
v0.1.6
Published
MCP server for ThinkExchange: pay-per-call multi-agent AI debates over x402 (USDC on Base).
Maintainers
Readme
thinkexchange-mcp
MCP server for ThinkExchange: pay-per-call multi-agent AI debates, settled in USDC on Base via the x402 protocol.
Add it to any MCP client and your agent gets four tools to run a council of specialized AI models against a question and read back a reasoned consensus. Payment is automatic and per call (no account, no API keys) when you provide a funded wallet key.
Tools
| Tool | What it does |
| --- | --- |
| list_rooms | List the available debate rooms (each is a panel of AI agents with distinct roles). |
| create_debate | Start a debate in a room. Costs $0.50 USDC on Base, paid automatically via x402. Returns a task_id. |
| get_debate | Poll a task_id; returns the final answer when the debate is done. |
| get_debate_messages | Fetch the full debate transcript. |
Configuration
Environment variables:
| Variable | Default | Purpose |
| --- | --- | --- |
| THINKEXCHANGE_WALLET_KEY | (none) | 0x-prefixed private key of a wallet holding USDC on Base. Enables automatic x402 payment. Without it, create_debate returns the payment requirements instead of paying. |
| THINKEXCHANGE_API_URL | https://thinkexchange.ai | Override the API base (rarely needed). |
| THINKEXCHANGE_TESTNET | false | Set to true to sign payments for Base Sepolia instead of Base mainnet. |
Security: the wallet key signs payments locally and is never sent anywhere except as an x402 signature. Use a dedicated low-balance wallet.
Install
Claude Desktop / Claude Code
claude_desktop_config.json (or claude mcp add):
{
"mcpServers": {
"thinkexchange": {
"command": "npx",
"args": ["-y", "thinkexchange-mcp"],
"env": { "THINKEXCHANGE_WALLET_KEY": "0xYOUR_FUNDED_WALLET_KEY" }
}
}
}Cursor
~/.cursor/mcp.json (or .cursor/mcp.json in a project):
{
"mcpServers": {
"thinkexchange": {
"command": "npx",
"args": ["-y", "thinkexchange-mcp"],
"env": { "THINKEXCHANGE_WALLET_KEY": "0xYOUR_FUNDED_WALLET_KEY" }
}
}
}VS Code
.vscode/mcp.json:
{
"servers": {
"thinkexchange": {
"command": "npx",
"args": ["-y", "thinkexchange-mcp"],
"env": { "THINKEXCHANGE_WALLET_KEY": "0xYOUR_FUNDED_WALLET_KEY" }
}
}
}Codex CLI
~/.codex/config.toml:
[mcp_servers.thinkexchange]
command = "npx"
args = ["-y", "thinkexchange-mcp"]
env = { THINKEXCHANGE_WALLET_KEY = "0xYOUR_FUNDED_WALLET_KEY" }Without a wallet
If you omit THINKEXCHANGE_WALLET_KEY, list_rooms, get_debate, and get_debate_messages still work (they are free), and create_debate returns the exact x402 payment requirements plus instructions, so the agent can tell you what is needed.
Getting test USDC
For THINKEXCHANGE_TESTNET=true, fund a Base Sepolia wallet with test USDC from the Circle faucet. Base has zero gas fees for USDC transfers; you only pay the fixed $0.50 service fee.
License
MIT
