Read and write KV & D1
If you ask
“Query the users table in my D1 database and show rows where signup_date is today”
Then
Read and write data in KV namespaces or D1 databases.
Works in Claude, Codex, Cursor & any MCP agent
How this prompt works
-
Turn on the Cloudflare connector in Claude, ChatGPT or Cursor — once.
-
Paste the prompt above. No code, no menus.
-
Read and write data in KV namespaces or D1 databases.
Level up: install the Cloudflare skill
A prompt you paste once. A skill your agent keeps — playbooks and defaults it loads every session. Official pack.
npx skills add cloudflare/skills FAQ
How do I read and write kv & d1 with Cloudflare?
Add the Cloudflare MCP connector once, then paste this prompt into Claude or ChatGPT: "Query the users table in my D1 database and show rows where signup_date is today". Your AI runs it in Cloudflare.
Do I need to code?
No. You install the connector once (a short config or one click), then ask in plain words. The prompt on this page works as-is.
Which AI assistants work?
Claude (Desktop, Code), Cursor, ChatGPT and other MCP clients. The same prompt works across them.
Set up Cloudflare in Claude
Copy-paste config, setup steps and more ready-to-run prompts on the connector page.
Open Cloudflare setupMore prompts