ENS Retro Agent API

FastAPI + MCP server backing the ENS DAO Governance Research dashboard. Queries a read-only DuckDB warehouse via a security-hardened SELECT-only SQL layer.

Endpoints

GET /api/tables — list permitted tables + column schemas
POST /api/agent-query — execute a validated SELECT query
GET /mcp — MCP server endpoint for Agent Builder integration

All endpoints except GET / require bearer token authentication via the AGENT_API_KEY environment variable.

Source: github.com/metagov/ENS-Retro-Data