
This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A demonstration MCP server built with the Model Context Protocol SDK and Cloudflare's MCPAgent that offers tools to query a D1 database and introspect its schema.
MCP server for querying a Cloudflare D1 database is cataloged as an MCP server attributed to jubalm. A demonstration MCP server built with the Model Context Protocol SDK and Cloudflare's MCPAgent that offers tools to query a D1 database and introspect its schema. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP server for querying a Cloudflare D1 database are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
README.md · ca551a6aa5fd · Fetched 2026-11-13 13:44:37 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
This repository serves as a demonstration of building an MCP (Model Context Protocol) server that can access and query actual database information. Uses
the @modelcontextprotocol/sdk library leveraging Cloudflare's MCPAgent to implement tools, manage resources, and a D1 database.
The project integrates with a D1 database (mcp-agent-d1-data) to retrieve data but you should be able to work with any database with some minor adjustments on the tools. Also included some niceties:
up.sql, down.sql, seed.sql) in the db/ directory manage the database schema and seed data.MyMCP)The MyMCP class extends the McpAgent class from the @modelcontextprotocol/sdk library. It acts as the core server implementation, providing server sent events (SSE) as a foundational transport.
The query tool is designed to interact with the database by providing an interface where the LLM can send SQL queries onto the database. Use with care in production environments and practice proper authorization safeguards.
The schema-introspection tool is particularly useful to help the LLM understand the structure of the database to produce a more accurate query design.
Included integration tests in the tests/ directory to get started. Validate the functionality of the MCP server and its tools, or use the tests for TDD.
npm run test
📦 d1-mcp
├── package.json
├── README.md
├── tsconfig.json
├── vitest.config.js
├── worker-configuration.d.ts
├── wrangler.jsonc
├── db
│ ├── down.sql
│ ├── seed.sql
│ └── up.sql
├── public
│ └── index.html
├── src
│ ├── index.ts
│ ├── metadata.ts
│ ├── tools.ts
│ └── utils.ts
└── tests
├── index.test.ts
└── tsconfig.json
wrangler)npm install
npm run dev
npm run deploy
This project is licensed under the MIT License.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP server for querying a Cloudflare D1 database from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-with-d1-data)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets AI assistants run SQL queries against AWS Athena databases and retrieve results.

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.