Integrates Coinbase's x402 payment protocol to enable USDC micropayments on Base for accessing premium endpoints, including full dimension scores, score refreshes, and fraud report submissions.
Allows LangChain agents to natively call DJD Agent Score endpoints for wallet reputation assessment, fraud detection, blacklist checking, and leaderboard retrieval.
djd-agent-score-mcp
MCP server for DJD Agent Score — a reputation scoring API for AI agent wallets on Base.
This server exposes the DJD Agent Score REST API as Model Context Protocol tools, so any MCP-compatible agent (Claude, GPT, Gemini, LangChain, etc.) can call scoring endpoints natively.
Tools
Tool | Endpoint | Cost | Description |
|
| Free | Basic score, tier, confidence |
|
| $0.10 (x402) | Full dimension breakdown |
|
| $0.25 (x402) | Re-score with latest chain data |
|
| $0.02 (x402) | Submit fraud report |
|
| $0.05 (x402) | Check fraud reports |
|
| Free | Embeddable SVG badge |
|
| Free | Top scored wallets |
|
| Free | Register wallet with metadata |
|
| Free | System status |
Installation
npm install -g djd-agent-score-mcpOr run directly with npx:
npx djd-agent-score-mcpConfiguration
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"djd-agent-score": {
"command": "npx",
"args": ["-y", "djd-agent-score-mcp"]
}
}
}Cursor
Add to .cursor/mcp.json in your project root:
{
"mcpServers": {
"djd-agent-score": {
"command": "npx",
"args": ["-y", "djd-agent-score-mcp"]
}
}
}Claude Code
Add to your project's .mcp.json:
{
"mcpServers": {
"djd-agent-score": {
"command": "npx",
"args": ["-y", "djd-agent-score-mcp"]
}
}
}Generic MCP Client (Streamable HTTP)
Start the server in HTTP mode:
TRANSPORT=http PORT=3000 npx djd-agent-score-mcpThen connect your MCP client to http://localhost:3000/mcp.
Environment Variables
Variable | Default | Description |
|
| API base URL (use |
|
| Request timeout in milliseconds |
|
| Transport mode: |
|
| HTTP server port (only used when |
Development
git clone <repo-url>
cd djd-agent-score-mcp
npm install
npm run build
npm startTo point at a local API during development:
DJD_BASE_URL=http://localhost:3001 npm startx402 Payment
Some endpoints require x402 micropayments. When an agent calls a paid tool, the API responds with HTTP 402 and payment instructions. Your agent framework must:
Detect the 402 response
Complete the x402 payment (USDC on Base)
Retry the request with the payment proof
The MCP server surfaces the 402 details in the tool's error response so the agent can handle it.
License
MIT