Retrieves comprehensive Kleros court dispute data from Ethereum Mainnet, including meta-evidence, evidence submissions, and dispute details from the Kleros decentralized justice protocol
Fetches evidence content and documents from IPFS via Kleros CDN gateway, enabling access to distributed file storage used in Kleros dispute cases
Kleros MCP Server
A Model Context Protocol (MCP) server that retrieves comprehensive Kleros court dispute data including meta-evidence and evidence submissions from multiple blockchain networks.
Features
- 🔗 Multi-chain Support: Ethereum Mainnet and Gnosis Chain
- 📊 Comprehensive Data: Meta-evidence, evidence submissions, and IPFS content
- 🌐 Remote Hosting Ready: Streamable HTTP transport with session management
- 🔒 Secure: DNS rebinding protection and proper CORS configuration
- ⚡ Fast: Parallel IPFS content retrieval with error handling
- 📱 Claude Desktop Compatible: Direct URL integration
Supported Networks
- Ethereum Mainnet (chainId: 1)
- Gnosis Chain (chainId: 100)
Data Sources
- Meta-evidence API: Kleros dispute metadata
- Ethereum Subgraph: Evidence submissions on Ethereum
- Gnosis Subgraph: Evidence submissions on Gnosis Chain
- IPFS Gateway: Evidence content via Kleros CDN
Claude Desktop Integration
Easy Setup (Recommended)
- Open Claude Desktop Settings
- Click on Settings in the sidebar
- Go to Connectors
- Navigate to Settings → Connectors
- Add Custom Connector
- Click "Add custom connector"
- Enter a name:
Kleros Court
- Paste the URL:
https://kleros-mcp-server-new.fly.dev/mcp
- Click "Add"
- Start Using
- The Kleros Court tool will now be available in Claude Desktop
- Try: "Get dispute data for dispute ID 481 on Gnosis Chain"
Alternative Configuration File Method
Add to your claude_desktop_config.json
:
MCP Tool
get_dispute_data
Retrieves comprehensive dispute data from Kleros including meta-evidence and evidence submissions.
Parameters:
disputeId
(string): The dispute ID to retrieve data forchainId
(number): The chain ID (1 for Ethereum, 100 for Gnosis)
Example Usage:
- "Get dispute data for dispute ID 123 on Ethereum"
- "Show me details for dispute 481 on Gnosis Chain"
- "Retrieve evidence for dispute 50 on chain 100"
Sample Response:
Quick Start
Prerequisites
- Node.js 18.x or higher
- npm or yarn
Local Development
- Clone and install dependencies:
- Build the project:
- Start the server:
- Health check:
Development Mode
For development with auto-restart:
Deployment
Fly.io Deployment
- Install Fly CLI:
- Login to Fly:
- Create app (update app name in fly.toml if needed):
- Build and deploy:
- Check deployment:
Your MCP server will be available at: https://kleros-mcp-server-new.fly.dev/mcp
Environment Variables
Set any required environment variables:
API Endpoints
Health Check
Returns server status and timestamp.
MCP Protocol
Main MCP protocol endpoints with session management.
Architecture
Error Handling
The server includes comprehensive error handling:
- Network timeouts: 10-15 second timeouts for external APIs
- IPFS failures: Graceful handling of unreachable content
- Subgraph errors: Detailed error reporting for query failures
- Input validation: Proper validation of dispute IDs and chain IDs
Development
Adding New Chains
- Add chain ID to
SUPPORTED_CHAIN_IDS
insrc/types/index.ts
- Add subgraph URL to
API_ENDPOINTS.SUBGRAPHS
insrc/utils/constants.ts
- Add network name to
NETWORK_NAMES
insrc/utils/constants.ts
Testing
Test the dispute data retrieval:
MCP Inspector Compliance
This server passes all MCP Inspector checks:
- ✅ Proper protocol implementation
- ✅ Correct message formatting
- ✅ Standard error codes
- ✅ Session management
- ✅ Resource cleanup
Security
- DNS rebinding protection enabled
- CORS properly configured
- Non-root container user
- Input validation and sanitization
- Graceful error handling without information leakage
Troubleshooting
Common Issues
- 404 Subgraph Errors: Check if subgraph URLs are up to date
- IPFS Timeout: Evidence content may be temporarily unavailable
- Invalid Dispute ID: Ensure the dispute exists on the specified chain
Getting Help
- Check server health:
curl https://kleros-mcp-server-new.fly.dev/health
- View logs:
fly logs
(for deployed version) - Test locally:
npm run dev
License
MIT
Contributing
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
Support
For issues and questions:
- Create an issue in the repository
- Check the logs:
fly logs
(for deployed version) - Verify health:
curl https://kleros-mcp-server-new.fly.dev/health
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables retrieval of comprehensive Kleros court dispute data including meta-evidence and evidence submissions from Ethereum and Gnosis Chain. Supports querying dispute details, evidence content, and IPFS-hosted materials through natural language.
Related MCP Servers
- AsecurityAlicenseAqualityEnables Claude to interact with Ethereum nodes, allowing users to check ENS token balances, view smart contract code, and decode transactions through natural language.Last updated -51JavaScriptMIT License
- -securityFlicense-qualityA server that securely manages Ethereum private keys locally and enables Claude for Desktop to interact with EVM-compatible blockchains through Infura.Last updated -TypeScript
- AsecurityFlicenseAqualityEnables Claude to interact with the Ethereum Name Service (ENS) system to resolve names, check availability, retrieve records, and perform other ENS-related operations through natural language.Last updated -87178TypeScript
- AsecurityFlicenseAqualityA comprehensive toolkit for Ethereum blockchain analysis within Claude AI, enabling contract auditing, wallet analysis, profitability tracking, and on-chain data retrieval.Last updated -117299JavaScript