Devbook MCP Server
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., "@Devbook MCP Server search my Devbook prompts for code review and summarize the top result"
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.
devbook-mcp
Official TypeScript-based Model Context Protocol (MCP) server for Devbook, the distraction-free desktop prompt engineering workbench and studio.
This server enables AI assistants and agents (Claude Desktop, Antigravity, Cursor, and custom MCP clients) to seamlessly query, author, manage, and execute prompt templates, inspect projects, upload file attachments, and render GitHub Flavored Markdown directly through the Devbook REST API.
Features
Full MCP Capabilities Suite:
17 Comprehensive Tools: Full CRUD, full-text search, pin management, attachments, and markdown rendering.
MCP Resources: Direct URI inspection via
devbook://stats,devbook://projects,devbook://prompts, and parameterized templates.Dynamic MCP Prompts: Exposes Devbook prompt templates as native MCP prompt commands with automatic parsing and dynamic substitution of
{{variable}}placeholders.
Stdio Transport: Ultra-fast JSON-RPC 2.0 communication over standard input/output.
Resilient Attachment Handling: Upload prompt context files via local filesystem paths or base64-encoded strings streamed as
multipart/form-data.OpenAPI 3.1 Contract: Strongly typed client generated directly against Devbook's OpenAPI 3.1.0 specification with runtime
Zodvalidation.Zero Friction Setup: Works out of the box with your local Devbook Rails server.
Related MCP server: Paperclip MCP server
Architecture Overview
flowchart LR
Client["AI Agent / Desktop Client<br/>(Claude, Antigravity, Cursor)"]
Stdio["Stdio Transport<br/>(JSON-RPC 2.0)"]
MCPServer["Devbook MCP Server<br/>(@modelcontextprotocol/sdk)"]
APIClient["Typed DevbookClient<br/>(Node native fetch)"]
DevbookAPI["Devbook Rails API<br/>(http://localhost:3000/api/v1)"]
Client <-->|MCP Protocol| Stdio
Stdio <--> MCPServer
MCPServer -->|Tools / Resources / Prompts| APIClient
APIClient <-->|REST JSON & Multipart| DevbookAPIQuickstart
Prerequisites
Node.js:
v18.0.0or higher (recommended: Node 20+)Devbook: Running locally (default:
http://localhost:3000)
Installation & Build
# Clone repository
git clone https://github.com/leouofa/devbook-mcp.git
cd devbook-mcp
# Install dependencies
npm install
# Build the TypeScript distribution
npm run buildConfiguration
The server can be configured via environment variables or command-line arguments:
Option | Environment Variable | CLI Flag | Default | Description |
API URL |
|
|
| Devbook API base URL |
API Key |
|
| (none) | Optional Bearer token for authentication |
Timeout |
|
|
| HTTP request timeout in milliseconds |
Prompt Sync | — |
|
| Eagerly register saved Devbook prompts at startup |
Client Integration Guides
1. Claude Desktop
Add devbook to your claude_desktop_config.json (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"devbook": {
"command": "node",
"args": ["/absolute/path/to/devbook-mcp/dist/index.js"],
"env": {
"DEVBOOK_API_URL": "http://localhost:3000"
}
}
}
}2. Antigravity IDE
Add to your local MCP server configuration in Antigravity (~/.gemini/antigravity/mcp.json or project settings):
{
"mcpServers": {
"devbook": {
"command": "node",
"args": ["/Users/leonid/src/devbook-mcp/dist/index.js"],
"env": {
"DEVBOOK_API_URL": "http://localhost:3000"
}
}
}
}3. Cursor
Add to your .cursor/mcp.json:
{
"mcpServers": {
"devbook": {
"command": "node",
"args": ["/absolute/path/to/devbook-mcp/dist/index.js"],
"env": {
"DEVBOOK_API_URL": "http://localhost:3000"
}
}
}
}Available MCP Primitives
MCP Tools
Tool | Description | Key Parameters |
| Search and list project workspaces |
|
| Get project details and prompt index |
|
| Create a new project workspace |
|
| Update project name or description |
|
| Delete a project |
|
| Search & filter prompts across scopes |
|
| Retrieve prompt Markdown body & metadata |
|
| Create a prompt (in a project or standalone) |
|
| Edit prompt content, project, or pin |
|
| Delete a prompt permanently |
|
| Toggle sidebar pin status for a prompt |
|
| Reorder sequential pinned prompts |
|
| List files attached to a prompt |
|
| Attach files (paths or base64) to prompt |
|
| Purge an attachment from a prompt |
|
| Render GFM into sanitized HTML |
|
| Inspect platform counts & metrics | (none) |
MCP Resources
URI Pattern | MIME Type | Description |
|
| Workbench metrics (total prompts, pinned prompts, projects, attachments) |
|
| Index list of all project workspaces |
|
| Project detail including its prompt list |
|
| Index list of all prompt scratchpads and templates |
|
| Full prompt Markdown body with metadata YAML frontmatter |
MCP Prompts (Prompt Templates)
devbook_execute_prompt: Dynamically loads any Devbook prompt by ID and populates{{variable}}placeholders from a variables JSON dictionary.devbook_author_prompt: Interactive guide that assists agents and users in authoring structured prompts with dynamic placeholders.Dynamic Prompts (
devbook_<id>_<slug>): On startup, saved Devbook prompts are automatically discovered, variables are extracted from the template body, and exposed as first-class typed MCP prompts (e.g.,devbook_5_project_bootstrap).
Development & Testing
# Regenerate TypeScript types from openapi.json
npm run typegen
# Typecheck with TypeScript
npm run typecheck
# Run unit and integration tests (Vitest)
npm test
# Build production bundle
npm run buildLicense
MIT © Leonid Medovyy
Available Tools
17 toolsdevbook_create_projectC
Create a new prompt project workspace in Devbook
Inputs: name (required), description.
devbook_create_promptB
Create a new prompt template in Devbook (under a project or as a standalone scratchpad prompt)
Inputs: title (required), body, pinned, project_id, +1 more.
devbook_delete_attachmentC
Purge and delete an attachment from a prompt
Inputs: prompt_id (required), attachment_id (required).
devbook_delete_projectB
Delete a project from Devbook (prompts in the project become standalone or are deleted depending on cascade)
Inputs: id (required).
devbook_delete_promptB
Permanently delete a prompt and its attachments from Devbook
Inputs: id (required).
devbook_get_projectB
Get full project details including its prompt list index and metadata
Inputs: id (required).
devbook_get_promptA
Retrieve a prompt's full Markdown template content, metadata, attachments, and optional rendered HTML
Inputs: id (required), render_markdown.
devbook_get_statsA
Get system statistics from Devbook (total prompts, projects, attachments, pinned prompts, standalone prompts)
Inputs: no named parameters.
devbook_list_attachmentsB
List file attachments associated with a prompt
Inputs: prompt_id (required).
devbook_list_projectsB
List and search prompt projects / workspaces in Devbook with prompt count metrics and pagination
Inputs: q, limit, offset.
devbook_list_promptsB
List, filter, and search prompts in Devbook by full-text search, project, standalone scope, or pinned status
Inputs: q, limit, scope, offset, +2 more.
devbook_render_markdownA
Render Markdown text to sanitized HTML using Devbook's GitHub-flavored markdown pipeline
Inputs: text (required).
devbook_reorder_pinnedC
Update the sequential order of pinned prompts displayed in the Devbook sidebar
Inputs: prompt_ids (required).
devbook_toggle_pinB
Toggle the pinned status of a prompt on the Devbook sidebar
Inputs: id (required).
devbook_update_projectC
Update an existing project's name or description
Inputs: id (required), name, description.
devbook_update_promptB
Update a prompt template's title, Markdown body, project assignment, or pinned status
Inputs: id (required), body, title, pinned, +3 more.
devbook_upload_attachmentB
Upload one or more files to attach to a prompt in Devbook (accepts local file paths or base64 data)
Inputs: files (required), prompt_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Most tools map cleanly to a resource+action (projects and prompts each have full CRUD, attachments have their own trio). The only overlap is that devbook_update_prompt can also change pinned status while devbook_toggle_pin does the same thing, and devbook_reorder_pinned is closely related to pinning, which could cause minor misselection.
All 17 tools use a uniform devbook_ prefix followed by a clear verb_noun pattern (list_projects, get_prompt, create_attachment, delete_attachment, render_markdown, get_stats). Minor omissions of the resource noun in toggle_pin/reorder_pinned are still unambiguous.
17 tools is slightly on the heavy side but justified by three sub-domains (projects, prompts, attachments) plus utilities. Each tool earns its place with no obvious filler.
Full CRUD is covered for both projects and prompts, plus pinning, ordering, attachments, rendering, and stats. Minor gaps: no way to download/retrieve an attachment's content or update an existing attachment, and no prompt duplication/versioning, but core workflows are fully covered.
Maintenance
Related MCP Connectors
Generate contextual prompts and reusable agent skills, evaluate prompts with the 16-dimension Prompt Score, and manage saved work in PromptDrive. Twelve MCP tools also provide authorized access to private Memory for source-grounded answers. Connect over Streamable HTTP using OAuth 2.1 and PKCE. Generation consumes account quota and automatically saves successful results; Memory access follows account permissions and plan limits.
Find, write, publish and check pages and API references in your DeveloperHub docs from an AI client
Gives AI agents direct access to your Sanity projects and guidance for working with them
Build, validate, deploy — HTTP APIs, cron jobs, webhooks and MCP tools — from your AI client.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides AI clients with safe, structured access to local filesystem, Git repositories, and project contexts, featuring file operations, git status/diff, project management, and built-in code review/bug analysis prompts.2,203 npmMIT
- FlicenseAqualityBmaintenanceEnables AI agents to interact with issue, comment, document, and agent workflows through a simplified HTTP API, returning compact Markdown or file-based snapshots.16-
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to securely inspect, modify, and manage local projects with trusted filesystem access, safe Git operations, controlled task execution, and developer runtime process management over stdio or HTTP.4Apache 2.0

Create app hostingofficial
AlicenseNot gradedqualityCmaintenanceEnables AI assistants to create projects, deploy files, container images, or Git repositories, attach domains, set write-only secrets, add Postgres, read logs, metrics, and failure summaries, and roll back.19 npmApache 2.0