Kxcoscan AI Tools
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Kxcoscan AI Tools
A production-ready AI tool server that wraps the Kxcoscan blockchain explorer API into clean, structured endpoints that any AI agent (Claude, GPT-4, etc.) can call directly.
Built with Next.js 14, deployed on Vercel, and includes an MCP (Model Context Protocol) server.
Architecture
kxcoscan-ai-tools/
├── app/
│ ├── api/
│ │ ├── balance/ GET /api/balance
│ │ ├── transactions/ GET /api/transactions
│ │ ├── token-transfers/ GET /api/token-transfers
│ │ ├── tx/ GET /api/tx
│ │ ├── contract/ GET /api/contract
│ │ ├── logs/ GET /api/logs
│ │ ├── token-info/ GET /api/token-info
│ │ ├── wallet-summary/ GET /api/wallet-summary
│ │ └── mcp/ POST /api/mcp (MCP JSON-RPC)
│ ├── page.tsx Interactive frontend dashboard
│ └── layout.tsx
├── components/
│ ├── ApiTester.tsx Interactive tool tester (client)
│ └── JsonDisplay.tsx Syntax-highlighted JSON viewer
├── lib/
│ ├── kxcoscan.ts Core API wrapper + utilities
│ └── cache.ts Edge cache response helpers
├── mcp/
│ └── server.ts MCP tool definitions
├── config/
│ └── modules.json Supported modules & AI tool manifest
├── types/
│ └── explorer.ts Full TypeScript types
└── vercel.jsonKey design decisions
Concern | Solution |
No API key needed | Open requests with a descriptive |
Parallel fetches |
|
AI-friendly output | Wei → KXCO conversion, ISO timestamps, human-readable status strings |
Caching | Vercel edge |
MCP | Stateless JSON-RPC 2.0 handler — no persistent process needed on Vercel |
CORS |
|
Related MCP server: IndigoProtocol/cardano-mcp
API Reference
All endpoints return JSON. All require a GET request with query parameters.
GET /api/balance
Param | Required | Description |
| ✅ | Wallet address |
{
"wallet": "0xABC...",
"balance": "102.345678",
"symbol": "KXCO",
"balanceRaw": "102345678000000000000"
}GET /api/transactions
Param | Required | Default | Description |
| ✅ | — | Wallet address |
| 1 | Page number | |
| 10 | Results per page (max 100) | |
| desc |
| |
| — | Filter from block | |
| — | Filter to block |
GET /api/token-transfers
Param | Required | Description |
| ✅ | Wallet address |
| Filter to a specific token | |
| Page number | |
| Results per page |
GET /api/tx
Param | Required | Description |
| ✅ | Transaction hash |
Returns status: "success" | "failed" | "pending".
GET /api/contract
Param | Required | Description |
| ✅ | Contract address |
Returns abi, sourceCode, contractName, isVerified.
GET /api/logs
Param | Required | Description |
| ✅ | Contract address |
| Start block (default: 0) | |
| End block (default: latest) | |
| Event signature hash filter |
GET /api/token-info
Param | Required | Description |
| ✅ | Token contract address |
Returns name, symbol, decimals, totalSupply, totalSupplyFormatted.
GET /api/wallet-summary ⭐ AI-optimised
Param | Required | Description |
| ✅ | Wallet address |
Returns balance + last 5 transactions + last 5 token transfers + a natural-language summary string.
MCP Server
The /api/mcp endpoint implements Model Context Protocol over stateless HTTP.
Available tools
Tool | Description |
| Get native KXCO balance |
| List transactions |
| List token transfers |
| Full wallet overview |
| Tx status by hash |
| Contract ABI + source |
| Token metadata |
| Contract event logs |
Claude Desktop configuration
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"kxcoscan": {
"url": "https://your-app.vercel.app/api/mcp",
"transport": "http"
}
}
}Manual JSON-RPC call
# List tools
curl -X POST https://your-app.vercel.app/api/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"tools/list","id":1}'
# Call a tool
curl -X POST https://your-app.vercel.app/api/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "wallet_summary",
"arguments": { "address": "0xYOUR_ADDRESS" }
}
}'Deployment
Deploy to Vercel (recommended)
# 1. Install Vercel CLI
npm i -g vercel
# 2. Clone and install
git clone <this-repo>
cd kxcoscan-ai-tools
npm install
# 3. Deploy
vercel
# Follow prompts — no environment variables required.
# The API is open (no key needed).Local development
npm install
npm run dev
# → http://localhost:3000Build check
npm run build
npm run type-checkHow AI agents call these tools
Option 1 — Direct HTTP (any agent framework)
import httpx
BASE = "https://your-app.vercel.app"
# Get wallet summary
r = httpx.get(f"{BASE}/api/wallet-summary", params={"address": "0xABC..."})
data = r.json()
print(data["summary"]) # Natural language overviewOption 2 — Claude tool use (Anthropic SDK)
import anthropic, httpx
client = anthropic.Anthropic()
def wallet_summary(address: str) -> dict:
return httpx.get(
"https://your-app.vercel.app/api/wallet-summary",
params={"address": address}
).json()
tools = [{
"name": "wallet_summary",
"description": "Get a comprehensive overview of a KXCO wallet",
"input_schema": {
"type": "object",
"properties": {
"address": {"type": "string", "description": "Wallet address 0x..."}
},
"required": ["address"]
}
}]
response = client.messages.create(
model="claude-opus-4-6",
max_tokens=1024,
tools=tools,
messages=[{
"role": "user",
"content": "Analyse wallet 0xABC..."
}]
)
# Handle tool_use blocks
for block in response.content:
if block.type == "tool_use" and block.name == "wallet_summary":
result = wallet_summary(block.input["address"])
# Continue conversation with result...Option 3 — MCP (Claude Desktop / Claude Code)
See MCP Server section above.
Adding new tools
Add the new module/action to
config/modules.jsonCreate
app/api/<tool-name>/route.tsfollowing the existing patternAdd the tool definition to
mcp/server.tsAdd the tool card to
components/ApiTester.tsx
The config/modules.json file serves as the canonical manifest — you can also parse it programmatically to auto-discover available tools.
Caching tiers
Tier |
|
| Used for |
| 10s | 30s | Live data |
| 60s | 120s | Balances, transactions |
| 5min | 10min | Token metadata |
| 1hr | 2hr | Contract ABIs (immutable) |
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP server for live public-data APIs and Skills for AI agents.
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
MCP server for the Z1N Protocol - on-chain identity for AI agents on Polygon
Free MCP server of security & dev API tools -- supply-chain, CVE, DNS, WHOIS, OFAC, Cosmos SDK.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that empowers AI agents to inspect any wallet’s balance and onchain activity across major EVM chains and Solana chain.39MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for Cardano blockchain data — exposes on-chain queries, address lookups, transaction history, token metadata, stake pool info, and network parameters to LLM agents.150 npm4MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that bridges AI models with Ethereum blockchains via all JSON-RPC calls, enabling natural language queries for block numbers, balances, transactions, and smart contract data.7 npm21MIT
- AlicenseNot gradedqualityDmaintenanceProduction-ready MCP server for 0G Chain blockchain operations, enabling wallet creation, balance checks, token transfers, staking, and validator discovery through natural language.MIT