Skip to main content
Glama
SAK1337

Dune Analytics MCP Server

by SAK1337
proposal.md706 B
# Change: Add Run SQL Tool for Ad-Hoc Queries ## Why Agents need the ability to execute raw, ad-hoc SQL without creating saved queries. This enables dynamic analysis where the agent writes its own SQL to answer unique user questions, supporting an iterative write-run-correct feedback loop. ## What Changes - Add `run_sql` tool to execute raw DuneSQL (Trino dialect) - Support performance tier selection - Apply default row limit of 50 - Add basic SQL validation (non-empty check) ## Impact - Affected specs: adhoc-sql (new capability) - Affected code: server.py (add tool definition) - Dependencies: Requires core-server capability (proposal 1) - **Note**: This empowers agents to act as data analysts

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SAK1337/dune-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server