• MONITOR
  • CONTROL
  • AUDIT
  • HUMAN

How to manage Dune query executions with your agent

Connect your agent to Dune Analytics to monitor your SQL workloads. You can track active runs and kill expensive queries before they drain your credits.

Ask AI about this page

Our technology reaches across leading technology and enterprise teams.

  • Amazon
  • NVIDIA
  • Red Hat
  • Fidelity Investments
  • Intuit
  • OLX Brasil
  • Writesonic
  • Artium
  • Trolley
Bunny World Voxel Workspace

Short answer

Can my AI stop running Dune queries?

Yes. Your agent can check the status of any active execution and cancel it immediately. This prevents long-running queries from wasting your credits. You'll see how your agent handles these tasks below.

The outcomes

Where your control lands.

Managing Dune workloads becomes a direct conversation with your agent.

MONITOR

Track active queries

Your agent checks the current state of your Dune executions. You'll know exactly which queries are still processing or have finished.

CONTROL

Kill runaway tasks

If a query is taking too long, tell your agent to stop it. It sends the signal to Dune to terminate the execution.

AUDIT

Review execution history

Your agent looks at the status of past runs. This helps you identify patterns in query performance or credit usage.

HUMAN

Manual oversight

Your agent handles the technical commands, but you decide which queries are worth stopping. You stay in control of all budget decisions.

The workflow

What your agent does when a query is running.

Your agent acts as a bridge between your chat interface and the Dune API.

  1. Check status

    Your agent looks up the current state of a specific execution to see if it is still processing.

    get_execution_status
  2. Identify issues

    Your agent compares the status against your instructions to see if a query is stuck or over budget.

    get_execution_status
  3. Stop execution

    Once you confirm, your agent tells Dune to kill the specific query ID.

    cancel_execution
  4. Confirm completion

    Your agent verifies that the cancellation was successful so you don't get billed for the full run.

    get_execution_status

Vinkius Agentic Execution Platform

State the outcome. Agents take it from there.

You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.

Run it in Vinkius

Agents carry the task to the end

Agents execute Dune Analytics tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.

Take it to any compatible AI

One connection, any client

Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.

Spaces

One Space per activity

A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.

Limits

Autonomy inside limits you set

Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.

Record

All steps, on the record

Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.

Models

Included in your plan

A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.

Try it

Copy these to start.

Use these prompts to trigger actions in Dune.

Starting points

Replace the specific execution IDs or query names with your actual Dune data.

Dune Analytics Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_eJSVmM35oPb3EQRWNnqipzpD87HbivFnslURw8ia/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat, Dune Analytics capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "dune-analytics-web3-sql-analytics-api-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_eJSVmM35oPb3EQRWNnqipzpD87HbivFnslURw8ia/mcp"
    }
  }
}
Copy into chat04
  • 01

    Check the status of my latest Dune query execution.

  • 02

    Is query execution 88291 still running in Dune?

  • 03

    Stop the Dune query execution with ID 44521 right now.

  • 04

    List all my currently running Dune executions and tell me if any are stuck.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Dune Analytics once, then ask.

Link your account once. Your credentials stay encrypted and secure, and you can immediately start managing queries through your favorite AI client.

Connect Dune Analytics to your agent

FAQ

How this task behaves.

  • 01

    Can your agent write new SQL queries for me?

    No. This specific connector is for managing the execution and status of queries, not for writing or editing the SQL code itself.

  • 02

    Will your agent automatically stop queries to save money?

    No. Your agent only stops a query when you explicitly tell it to. It won't make autonomous budget decisions without your input.

  • 03

    Can I use this to create new Dune dashboards?

    No. The available tools are limited to checking and canceling executions.

  • 04

    Does your agent see my private Dune data?

    Your agent only accesses the specific execution data required to perform the status checks and cancellations you request.

  • 05

    Can your agent delete my saved queries?

    No. There is no tool provided to delete or modify saved queries in Dune.

  • More questions about Dune Analytics? See everything the Dune Analytics Connector can do

Building with AI? Ship this whole workflow in your product.

Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from Dune Analytics to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.

Explore Vinkius Connect

TypeScript · Python · Java · Go · C# · PHP · Rust

  • 01

    Your customers bring their own keys.

    Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.

  • 02

    Whole catalog, kept current.

    Dune Analytics plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.

  • 03

    Any agent, any model.

    Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.

Connect Dune Analytics to Claude, Cursor, ChatGPT & more

From idea to done

See what gets done when the agents take over the busywork

Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.