• SQL RESULTS
  • KV ACCESS
  • DATA AUDIT
  • HUMAN REVIEW

How to manage D1 and KV data with your agent

Connect your agent to Cloudflare to interact with your databases and key-value stores using plain text.

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

How can I manage D1 and KV data with my AI?

You can execute SQL commands on D1 databases and pull specific values from KV namespaces directly in your chat interface. This lets you inspect your data and run queries without leaving your AI client. You'll see the results immediately in your conversation.

Where each action lands.

Data management outcomes

Your agent handles the heavy lifting of database interaction and data retrieval.

SQL RESULTS

Direct database queries

Your agent runs your SQL commands against D1 and returns the rows you requested. You get clean data tables right in the chat.

KV ACCESS

Key-value lookups

Your agent finds specific keys or lists everything in a namespace. It pulls the exact values you need for your application logic.

DATA AUDIT

Namespace inventory

Your agent lists your available D1 databases and KV namespaces. This helps you confirm you are targeting the right storage locations.

HUMAN REVIEW

Manual verification

You review the query results or key values before making any decisions. Your agent provides the data, but you decide what to do with it.

The workflow

What your agent does when you ask for data.

Your agent translates your intent into specific Cloudflare API calls.

  1. Locate storage

    Your agent identifies which D1 databases or KV namespaces you want to work with.

    list_d1_databaseslist_kv_namespaces
  2. Fetch keys

    If you need to see what is inside a KV namespace, your agent pulls a list of available keys.

    list_kv_keys
  3. Retrieve values

    Your agent grabs the specific data stored under a key.

    get_kv_key
  4. Run queries

    Your agent executes your SQL statements to return the requested rows.

    query_d1

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 Cloudflare 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 begin interacting with your Cloudflare data.

Starting points

Replace the database names and namespace IDs with your actual Cloudflare identifiers.

Cloudflare Connector

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

Connector linkhttps://edge.vinkius.com/vk_preview_QxZIaIoAXIL23CyRLSDVkRwHXoDvC0VRLSwRYtQS/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, Cloudflare capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "cloudflare-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_QxZIaIoAXIL23CyRLSDVkRwHXoDvC0VRLSwRYtQS/mcp"
    }
  }
}
Copy into chat04
  • 01

    Show me all my D1 databases.

  • 02

    List the keys in my 'session_cache' KV namespace.

  • 03

    Run a query on my 'users_db' to find the last 5 signups.

  • 04

    Get the value for the key 'config_v1' in my production KV namespace.

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

Start here

Connect Cloudflare once, then ask.

Link your account once. Your credentials stay encrypted, and you can immediately start chatting with your data.

Connect Cloudflare to your agent

FAQ

How the Cloudflare Connector behaves

  • 01

    Can your agent delete my D1 tables?

    No. The current tools only allow for listing and querying data. It cannot drop tables or delete records.

  • 02

    Can I update KV values through the chat?

    No. Your agent can only read and list keys and values. It cannot write or update data in your KV namespaces.

  • 03

    Does your agent see all my Cloudflare data?

    No. Your agent only sees the specific D1 databases and KV namespaces you instruct it to interact with using the provided tools.

  • 04

    Can your agent create new D1 databases?

    No. The capability is limited to listing existing databases and running queries against them.

  • 05

    How does your agent handle SQL errors?

    If a query is malformed, your agent will receive the error from Cloudflare and explain what went wrong in plain English.

  • More questions about Cloudflare? See everything the Cloudflare 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 Cloudflare 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.

    Cloudflare 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 Cloudflare 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.