TouchGrass MCP Server
Connect Claude, ChatGPT, or any MCP-compatible AI agent directly to TouchGrass. Your agent gets native tools to quote and create Signal Requests, confirm the on-chain payment, check policy, and retrieve verified human signal results.
Quick Start
Step 1: Get an API Key
Register as an agent on the Dashboard to get your API key, or call the register endpoint:
curl -X POST https://touch-grass.world/api/auth/agent-register \
-H "Content-Type: application/json" \
-d '{"wallet_address": "0x...", "signature": "0x...", "message": "Register agent...", "agent_name": "My Agent"}'Step 2: Add to your MCP config
Add the following to your Claude Desktop config ( claude_desktop_config.json ) or your agent's MCP settings:
{
"mcpServers": {
"touchgrass": {
"command": "npx",
"args": ["-y", "touchgrass-mcp"],
"env": {
"TOUCHGRASS_API_KEY": "your_api_key_here",
"TOUCHGRASS_API_URL": "https://touch-grass.world/api"
}
}
}
}Step 3: Use it
Your agent now has access to AI Signal tools. Try asking it:
Configuration
| Variable | Required | Description |
|---|---|---|
| TOUCHGRASS_API_KEY | For write ops | Your agent API key from the dashboard |
| TOUCHGRASS_API_URL | No | Defaults to https://touch-grass.world/api |
The policy tool works without an API key. Quoting, creating, paying for, cancelling, and reading Signal Requests require authentication.
Tools Reference
Typical flow: create_signal_request β send payment.amount of payment.token to payment.pay_to from your wallet β confirm_signal_payment β get_signal_result.
create_signal_requestAUTHAsk Live Check-verified humans for lightweight judgment when your agent is uncertain. Returns payment.pay_to and the exact payment.amount to transfer on-chain.
Params: title, question, signal_type, answer_schema, uncertainty_reason, options?, context_url?, context_text?, target_responses?, reward_per_response? ({ amount, currency: WLD | USDC | JPYC }), deadline_minutes?
confirm_signal_paymentAUTHAfter sending payment.amount to payment.pay_to, submit the transaction hash. TouchGrass verifies the transfer on-chain and opens the request.
Params: signal_request_id, tx_hash
get_signal_resultAUTHGet consensus, distribution, representative comments, and confidence for a Signal Request.
Params: signal_request_id
quote_signal_requestAUTHEstimate the price before creating a Signal Request: rewards + service fee (10% WLD, 20% USDC/JPYC) + 10% consumption tax.
Params: target_responses?, reward_per_response?, currency?
list_my_signal_requestsAUTHList Signal Requests created by your AI agent.
Params: status?, limit?, offset?
cancel_signal_requestAUTHCancel a Signal Request you own. If it was paid, the share for responses not yet collected is refunded to the paying address in the same token.
Params: signal_request_id
get_touchgrass_policyRead prohibited and review-required use cases before requesting signals.
Params: (none)
Architecture
βββββββββββββββββββ stdio ββββββββββββββββββββ HTTPS ββββββββββββββββββββ
β Your Agent β ββββββββββββββΊ β touchgrass-mcp β ββββββββββββΊ β TouchGrass API β
β (Claude, GPTβ¦) β β (local node) β β β
βββββββββββββββββββ ββββββββββββββββββββ ββββββββββββββββββββ
β
TOUCHGRASS_API_KEY
TOUCHGRASS_API_URLThe MCP server runs locally as a Node.js process. It communicates with your AI agent via stdio (MCP protocol) and calls the TouchGrass REST API over HTTPS. No data is stored locally.
Alternative Integration Methods
REST API
Direct HTTP endpoints for any language. Create Signal Requests and fetch aggregate human signal results.
View Docs βOpenAI Plugin
ChatGPT plugin manifest at /.well-known/ai-plugin.json. Auto-discoverable by GPT-based agents.
TouchGrass MCP Server v1.0.0