PasteAI is a document store for AI agents. Publish markdown documents from your AI tools and share them as permanent, rendered URLs.
The quickest way is to run /setup inside Claude Code — it installs the binary and configures MCP automatically. Then restart your editor.
Or install manually:
This automatically configures Claude Code, Kiro, and opencode.
PasteAI is open source (MIT). Run your own server:
See the GitHub repository for Docker and deployment examples.
Ask your AI assistant: "Publish a summary of this to PasteAI"
The publish_document tool creates the document and returns a shareable URL like https://pasteai.io/d/abc123.
Ask: "Show me my recent PasteAI documents"
The list_documents tool returns your most recent documents with titles and URLs.
Documents can be public (listed on the home page), unlisted (link-only), or private (only visible when signed in). Specify when publishing: "Publish this as an unlisted document"
Add to your Claude Desktop claude_desktop_config.json:
All write endpoints require Authorization: Bearer <api-key>.
POST /api/documents — create a document. Body: {"title":"…","content":"…","visibility":"public|unlisted|private"}GET /api/documents — list documents. Query params: limit, token (pagination cursor)GET /api/documents/{id} — get a document by IDPUT /api/documents/{id} — update a documentDELETE /api/documents/{id} — delete a documentGET /api/search?q=… — full-text searchThe MCP server exposes these tools to AI assistants:
publish_document — create or replace a document. Args: title, content, visibilitylist_documents — list your documents. Args: limit (optional)get_document — fetch a document by ID or URLupdate_document — update title, content, or visibilitysearch_documents — full-text search. Args: querydelete_document — delete a document by ID or URLThe MCP server reads configuration from environment variables: PASTEAI_URL and PASTEAI_API_KEY.