Agent Library
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Agent Libraryturn these notes into a markdown doc in my Tidepool project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Agent Library

One place for everything your agents make, with per-agent permissions, first-class Markdown, and linkable artifacts that work across every platform.
Agent Library is a shared home for what your agents produce: Markdown docs, HTML pages, data files, PDFs, screenshots and videos. It all lives in one place instead of being scattered across Claude, ChatGPT, Codex, Cursor and whatever you're trying this week.
Any agent, over MCP. Agents read and write through a standard remote MCP server with OAuth sign-in, or through a scoped HTTP API. No custom client, SDK or gateway is required.
You decide who gets what. Each agent connection gets explicit, revocable access to specific projects, read-only or read/write. Revoking access takes effect on the agent's next request.
Markdown is first-class. Agents edit Markdown directly, with no conversion step. Every save is an immutable version, so you can see what changed, who changed it and why, and restore any earlier version.
Every artifact has a stable link. Agents return a link with each file, so you can open it on your phone or hand it to another agent. Links open in your library and need your sign-in; they aren't public share links.
Apps can keep their own data here too. With App Connect, an app you register gets access only to the files it creates (similar to Google Drive's app data folder). You can still browse, link and share those files from your projects like anything else.
Yours, and open source. It runs in your own Cloudflare account (Workers, D1, R2, KV) and isn't tied to any one model or app. MIT licensed.
Screenshots
Demo data: a fictional "Tidepool" project.
|
|
Home. Everything your agents made, newest first. | Documents. Markdown renders in place; Edit is one tab away. |
|
|
Pages and files. HTML, images, PDFs, video and data files. | Version history. Who changed what and why, with a diff and one-click restore. |
| |
Connections. Per-agent, per-project access you can revoke any time. | On your phone. Every artifact's link opens on mobile too. |
Related MCP server: open-artifacts
How it works
One Cloudflare Worker serves two hostnames:
Host | Who uses it | What's there |
| You, in a browser (desktop or phone) | The library UI, behind Cloudflare Access |
| Agents and apps | OAuth, the MCP server at |
D1 stores projects, folders, Markdown, versions, grants and audit records. A private R2 bucket holds immutable binary versions (images, PDFs, video). KV holds OAuth state. A cron job cleans up abandoned uploads.
It is a single-owner library with many agents, not a multi-tenant service. Uploaded HTML and SVG are never executed on the app's origin. Every save is checked against the expected revision, so a conflicting edit preserves your draft instead of overwriting it.
Set it up
You need a Cloudflare account with a zone (domain) you control, Node 24 and about 20 minutes. The setup is written to be followed by a coding agent: point yours at docs/self-hosting.md and work through it together. It covers which Cloudflare resources to create and the commands to run.
git clone https://github.com/<you>/agent-library && cd agent-library
npm ci
cp scripts/self-host/example.json .self-host.json # fill in your resource IDs and hostnames
npm run setup:self-host -- --input .self-host.json # offline: validates and stages dist/self-host/Then connect your agents.
Limits
Agent Library is a personal library: one owner, many agents.
There are no other human users, public links or real-time co-editing. Agents edit one revision at a time, and conflicting saves are rejected rather than merged.
Limits: 1 MiB per Markdown or HTML document; 5 MiB per binary file (PNG, JPEG, WebP, GIF, PDF, MP4, WebM) and 100 MiB of binaries per project (adjustable with
PROJECT_BINARY_BYTES). A project stops accepting new documents once it holds 100 items, counting uploads and trashed items.Backups are per project and exclude App Connect projects. See Operations.
Cloudflare's free tiers cover a typical personal library, but usage beyond them is billed to your account.
Docs
Self-hosting: Cloudflare resources, Access sign-in, deploy, acceptance checks.
Connecting agents: MCP (OAuth) and API keys, scopes, revocation.
App Connect: let your own apps store their data in your library.
Architecture: how the pieces fit, the security model and how the bundle is built.
Operations: upgrades, backup and restore, rollback.
Deploy pipeline (optional): auto-deploy your installation from GitHub on every push to
main.Version history and upload finalization: design notes.
Development
npm ci
npm run typecheck
npm run test:deploy # deploy guards and migration ordering (offline)
npm run check:bundle # src/index.js rebuilds byte-for-byte from source
npm test # full suite: local wrangler, real MCP client, Chrome
npm run dev # local server on 127.0.0.1:8787 (wrangler.local.toml)Tests use local Wrangler bindings and synthetic fixtures only. Read CONTRIBUTING.md and AGENTS.md before changing code. The deployable Worker is the committed src/index.js, built from a pinned baseline plus small reviewed source patches (npm run build:design), not a full compile of src/**/*.ts.
Status
Version 0.1.0, the first public release. Please report anything that doesn't work, and ask setup questions in Discussions. Security issues: see SECURITY.md. Contributions are welcome; see CONTRIBUTING.md and the code of conduct.
License
MIT. Third-party components keep their notices in THIRD_PARTY_NOTICES.md.
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted markdown project wikis your team's AI assistants read, search, and update over MCP.
- hiveWikiOAuthai.hivewiki
Shared project wiki for AI agents: read and write pages, next actions, and activity logs over MCP.
AgentDocs (agentdocs.eu) MCP: read, search, write, comment, share & attach images to Markdown docs.
- mcpOAuthio.artifacta
Artifact store for AI agents. Hosted OAuth at mcp.artifacta.io/mcp; local stdio via npm/PyPI.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceMCP server that turns agent-generated Markdown, HTML, and text into persistent links, with tools to create, update, remove, list, and retrieve artifacts.MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to publish, retrieve, update, and delete hosted HTML, Markdown, Mermaid, and SVG artifacts and to create, list, or revoke shareable links through authenticated, scope-enforced tools. It exposes artifact hosting over Streamable HTTP so any MCP client can manage content on a self-hosted instance using a Bearer agent API key.2MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to store, version, browse, search, and share artifacts in workspace drives and folders through MCP tools, with keys that gate which tools are offered. Uploads produce shareable public links and rendered previews, and the same bearer key works across the REST API and MCP transport.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables any MCP-capable agent to maintain a shared .apm Markdown source of truth for project goals, tasks, decisions, handoffs, and health insights. It lets multiple agents and CLI/dashboard tools coordinate using the same file-based read/write logic without a database.MIT




