🔌 MCP Integration Guide

Connect your AI agent to MetaVision's 16 tools via MCP protocol

Quick Start

Endpoint: POST https://metavision.click/mcp

import requests

# List all available tools
r = requests.post("https://metavision.click/mcp", json={
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/list"
})
tools = r.json()["result"]["tools"]
print(f"Available tools: {len(tools)}")

Available Tools

🔒 cve_lookup — CVE security scan
⚡ defi_spread — Live arbitrage data
🎲 generate_3d — Text/image to 3D
🏠 interior_design — SpaceByYou quiz
🎮 get_games — Browser games list
📊 get_deals — AI tool deals
📖 generate_story — AI story gen
⚙️ analyze_gcode — CNC analysis

Example — CVE Lookup

r = requests.post("https://metavision.click/mcp", json={
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
        "name": "cve_lookup",
        "arguments": {"contract_keywords": "ethereum"}
    }
})
print(r.json()["result"]["content"][0]["text"])

Example — DeFi Spread

r = requests.post("https://metavision.click/mcp", json={
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
        "name": "get_defi_spread",
        "arguments": {}
    }
})
print(r.json())

Authentication & Payments

Basic tools — No auth required

💳 Premium tools — x402 micropayments via Base network

If a tool requires payment, you'll receive a HTTP 402 response with payment details.

# x402 payment flow
r = requests.post("https://metavision.click/mcp", json={...})
if r.status_code == 402:
    payment_info = r.json()
    amount = payment_info["amount"]  # e.g. "0.25"
    wallet = payment_info["wallet"]  # Base network address
    # Send USDC to wallet, then retry with tx hash

A2A Protocol

MetaVision supports Agent-to-Agent (A2A) discovery:

# Discover MetaVision agent
r = requests.get("https://metavision.click/.well-known/agent.json")
agent_card = r.json()
print(agent_card["name"])  # MetaVision AI Agent

Register your agent at a2aregistry.org

Questions? Email us or open an issue on GitHub

← Back to MetaVision