Complete guide to the Intuition MCP Server
The Intuition MCP Server provides a Model Context Protocol interface for querying trust scores, attestations, and verifying credentials on the Intuition network. It enables AI assistants like Claude to access on-chain reputation and attestation data.
git clone https://github.com/yourusername/intuition-mcp-server cd intuition-mcp-server npm install
# .env.local NEXT_PUBLIC_INTUITION_GRAPH_URL=https://graph.intuition.systems/graphql
npm run dev
Add the following configuration to your Claude Desktop config file
Config file location:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"intuition": {
"command": "node",
"args": [
"C:/absolute/path/to/intuition-mcp-server/lib/mcp/server.js"
],
"env": {
"NEXT_PUBLIC_INTUITION_GRAPH_URL": "https://graph.intuition.systems/graphql"
}
}
}
}After updating the config, restart Claude Desktop for changes to take effect.
Get comprehensive trust score for an Ethereum address
address (string, required): Ethereum address (0x...){
"address": "0x...",
"score": 85.5,
"attestationCount": 42,
"positiveAttestations": 38,
"negativeAttestations": 4,
"lastUpdated": 1234567890,
"breakdown": {
"credibility": 88.2,
"expertise": 90.1,
"reliability": 82.5,
"reputation": 85.5
}
}// In Claude conversation: "What is the trust score for address 0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb?"
Query attestations with flexible filters
creator (string, optional): Filter by creator addresssubject (string, optional): Filter by subject addresspredicate (string, optional): Filter by predicate/claim typeobject (string, optional): Filter by object valueminConfidence (number, optional): Minimum confidence (0-1)limit (number, optional): Max results (default: 100, max: 1000)offset (number, optional): Pagination offset[
{
"id": "triple-123",
"creator": "0x...",
"subject": "0x...",
"predicate": "expert-in-solidity",
"object": "true",
"timestamp": 1234567890,
"confidence": 0.95,
"stake": "vault-456"
}
]// In Claude conversation: "Show me all attestations for address 0x... with predicate 'expert-in-defi'"
Verify if an address has a specific credential or claim
address (string, required): Ethereum address to verifyclaim (string, required): Credential/claim to verify{
"verified": true,
"attestations": [...],
"confidence": 0.92,
"message": "Address 0x... has 5 attestation(s) for 'expert-in-defi' with 92.0% confidence"
}// In Claude conversation: "Is address 0x... verified as 'trusted-developer'?"
Find and rank experts in a specific topic or domain
topic (string, required): Topic or domain to searchlimit (number, optional): Max experts (default: 10, max: 100)[
{
"address": "0x...",
"trustScore": 92.5,
"attestationCount": 47,
"specializations": ["solidity"],
"recentActivity": 1234567890
}
]// In Claude conversation: "Who are the top 5 experts in 'smart-contract-security'?"
You can also access the MCP tools via HTTP endpoints when running the Next.js development server.
curl "http://localhost:3000/api/trust-score?address=0x..."
curl "http://localhost:3000/api/attestations?subject=0x...&limit=50"
curl -X POST http://localhost:3000/api/mcp \
-H "Content-Type: application/json" \
-d '{
"tool": "verifyCredential",
"params": {
"address": "0x...",
"claim": "expert-in-defi"
}
}'interface TrustScore {
address: string;
score: number;
attestationCount: number;
positiveAttestations: number;
negativeAttestations: number;
lastUpdated: number;
breakdown: {
credibility: number;
expertise: number;
reliability: number;
reputation: number;
};
}
interface Attestation {
id: string;
creator: string;
subject: string;
predicate: string;
object: string;
timestamp: number;
confidence: number;
stake?: string;
metadata?: Record<string, any>;
}
interface VerificationResult {
verified: boolean;
attestations: Attestation[];
confidence: number;
message: string;
}
interface Expert {
address: string;
trustScore: number;
attestationCount: number;
specializations: string[];
recentActivity: number;
}Learn about the Intuition protocol
Official MCP documentation
Test the API in your browser
View source code