OpenDash CMS ships with an embedded Model Context Protocol (MCP) server built directly into the single executable. Coding assistants and automation scripts can inspect schemas, edit draft entries, patch OpenDash Studio block trees, upload media, and submit reviewable SEO proposals without external bridge plugins.
Streamable HTTP vs stdio transport
Choose between remote Streamable HTTP mounted on your live OpenDash server at /mcp or local CLI stdio via opendash mcp. Both speak JSON-RPC 2.0 (protocolVersion: "2024-11-05") and enforce 4 MiB maximum message payloads.
| Dimension | Streamable HTTP (/mcp) | Local CLI Stdio (opendash mcp) |
|---|---|---|
| Transport | POST / GET / DELETE with Mcp-Session-Id | Line-delimited JSON-RPC over stdin/stdout (max 4 MiB/line) |
| Tool Catalog | 53 HTTP tools (47 site/content/builder/studio + 6 SEO) | 15 stdio tools (9 local/live helpers + 6 SEO) |
| Best For | Hosted CMS instances, IDE HTTP MCP clients, remote agents | Local scaffolding (theme_scaffold, theme_check) & CI pipelines |
| Live Auth | Authorization: Bearer od_pat_... + strict Origin checks | Reads OPENDASH_URL and OPENDASH_TOKEN env vars for live calls |
8 Resources, 53 HTTP Tools & 5 Prompts
MCP clients can inspect 8 built-in Resources upfront before running any write operation:
opendash://site/overview— general settings, locales, reading settings, and content typesopendash://theme/active— active folder theme manifest, layouts, and token defaultsopendash://blocks/catalog— active core, theme, and plugin block schemasopendash://patterns/library— saved and theme-provided reusable pattern blueprintsopendash://content-types— CPT and custom field group schemasopendash://menus— registered menu locations and hierarchyopendash://docs/ai— concise AI-first Markdown reference compiled into the binaryopendash://schemas/blueprint—SiteBlueprintV1JSON Schema
Five workflow Prompts are also exposed: build_new_website, edit_page_section, write_seo_post, translate_site_content, and audit_site_health.
Over Streamable HTTP (/mcp), agents gain 53 tools covering site_overview, list_blocks, list_patterns, CRUD entry & revision tools, get_page_outline, compose_page_from_patterns, patch_page_blocks, preview_page, theme options/tokens/templates, menus, reading/general settings, media uploads & metadata, locales & translations, terms, redirects & 404 logs, custom options pages, contact triage, blueprint_apply, docs_get, schema_get, diagnostics_get, plus 6 shared SEO tools (get_seo_context, analyze_seo, propose_seo_changes, explain_sitemap_url, update_seo, update_home_seo). Over stdio (opendash mcp), 15 tools are registered: docs_get, schema_get, theme_check, theme_scaffold, site_info, blueprint_apply, content_list, content_upsert, diagnostics_get, and the 6 SEO tools.
Client setup in 30 seconds
In OpenDash Admin, use the 30-second Connect AI modal (or run opendash token create) to mint an od_pat_ Bearer token, then configure either Streamable HTTP or stdio in your IDE/agent client:
{
"mcpServers": {
"opendash": {
"type": "http",
"url": "https://example.com/mcp",
"headers": {
"Authorization": "Bearer od_pat_replace_with_64_hex_chars"
}
}
}
}
{
"mcpServers": {
"opendash-local": {
"command": "/usr/local/bin/opendash",
"args": ["mcp"],
"env": {
"OPENDASH_URL": "http://127.0.0.1:18766",
"OPENDASH_TOKEN": "od_pat_replace_with_64_hex_chars"
}
}
}
}
Scoped API Tokens & Hard Deny-List
Personal Access Tokens use the format od_pat_<64hex> and inherit an upper bound from their owning CMS user's role. You can pick from 4 presets (safe_draft_assistant, full_site_builder, read_only, custom) or select combinations of the 9 granular scopes: site:read, content:read, content:write, content:publish, builder:write, design:write, media:write, schema:write, and mcp:access. Passing legacy admin inside a custom scope array is rejected.
opendash token create \
--name "docs-assistant" \
--preset safe_draft_assistant \
--expires-days 90 \
--json
Next steps
Continue to Agent REST API v1 & Recursive AST to inspect OpenAPI 3.1 endpoints, optimistic If-Match concurrency, AST node patching, and declarative blueprints.