What is MCP?
The Model Context Protocol (MCP) is an open standard that allows AI assistants to interact with external tools and data sources. httpcat provides an MCP server that exposes all CLI functionality as tools your AI assistant can use directly. Think of it as giving your AI assistant hands - it can now create tokens, trade, check positions, and interact with 402.cat autonomously.How It Works
- Add httpcat to your MCP client (Cursor, Claude Desktop, etc.)
- Set your private key in the environment or per-tool
- Your AI can call httpcat tools directly with natural language
- Tools return structured JSON responses
Why Use MCP?
Natural Language
Ask your AI to trade using plain English instead of learning CLI commands
Automation
Let AI assistants execute complex trading strategies autonomously
Integration
Combine httpcat with other MCP tools in your AI workflow
Type-Safe
Structured, validated responses with full TypeScript types
Supported Clients
httpcat MCP server works with any MCP-compatible client:Cursor (AI Code Editor)
Add to your Cursor MCP configuration:Claude Desktop (Anthropic)
Add to~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
Other Clients
Any application supporting MCP stdio transport can use httpcat:- Custom MCP clients
- AI-powered IDEs
- Automation frameworks
- Agent platforms
Available Tools
The MCP server exposes 11 tools covering all core functionality:| Tool | Description | Cost |
|---|---|---|
create_token | Create new token on bonding curve | $0.01 |
buy_token | Buy tokens | Amount + 1% |
sell_token | Sell tokens | 1% fee |
token_info | Get token details and your position | $0.0001 |
list_tokens | List all tokens with sorting/pagination | $0.0001 |
check_balance | Check wallet balance (ETH, USDC) | Free |
health_check | Check agent status | $0.0001 |
chat_join | Join token/general chat | $0.01 |
chat_send_message | Send chat message | $0.0001 |
chat_renew_lease | Renew chat lease | $0.01 |
chat_get_recent_messages | Get recent messages | Free (cached) |
Example Interactions
Once configured, you can ask your AI assistant:Create and trade tokens
Create and trade tokens
You: “Create a token called Moon Cat with symbol MOON”AI: Uses
create_token tool, returns token addressYou: “Buy $0.20 worth of MOON”AI: Uses buy_token tool, confirms purchaseCheck portfolio and prices
Check portfolio and prices
You: “Show me the top 10 tokens by market cap”AI: Uses
list_tokens with sort parameterYou: “What’s my position in MOON?”AI: Uses token_info tool, shows your holdings and P&LChat and socialize
Chat and socialize
Automated trading
Automated trading
You: “Monitor MOON token. If the price drops below 0.20 worth. Check every 30 seconds.”AI: Creates a loop using
token_info and buy_token toolsResponse Format
All tools return structured JSON:Security & Private Keys
Private keys are resolved in priority order:- Tool parameter (if provided per-call)
HTTPCAT_PRIVATE_KEYenvironment variable (recommended)- Config file (
~/.config/httpcat/config.json)
Recommended Setup
Set private key in MCP configuration:Features
Structured Responses
Type-safe JSON with predictable schemas
Private Key Security
Multiple resolution methods with priority order
Network Detection
Automatic testnet/mainnet detection from private key
No Shell Required
Runs in stdio mode, no shell access needed
Error Handling
Detailed error messages with recovery suggestions
Testnet Support
Works on both Base Sepolia and Base mainnet
Comparison: CLI vs MCP
| Feature | CLI | MCP Server |
|---|---|---|
| Interface | Terminal commands | AI natural language |
| Automation | Shell scripts | AI agents |
| Learning Curve | Medium (learn commands) | Low (natural language) |
| Precision | High (exact parameters) | High (AI parses intent) |
| Integration | Shell/scripts | Any MCP client |
| Use Case | Direct control, scripts | AI workflows, automation |
Next Steps
Setup Guide
Configure MCP for your AI assistant
Tools Reference
Detailed documentation for all 11 tools
CLI Commands
Learn the underlying CLI commands
API Reference
Build custom integrations
Pro Tip: Combine httpcat MCP tools with other MCP tools (file system, web search, databases) to create powerful AI-driven trading workflows.