
DollhouseMCP
io.github.DollhouseMCP由 GitHub 帳號 DollhouseMCP 發布v2.0.43更新於 Oct 24, 2026
OSS to create Personas, Skills, Templates, Agents, and Memories to customize your AI experience.
概覽
本機 MCP 伺服器,讓助理建立、啟用與管理存放在本機資料夾的模組化角色、技能、範本、代理、記憶與組合包
- 可以做什麼
- 建立、編輯與刪除角色、技能、範本、代理、記憶、組合包等元素,也可從社群合集安裝,並在兩種技能格式之間轉換。列出、搜尋、檢視並啟用元素,啟用狀態在重新啟動後保留。逐步執行代理,提供自主性指引與操作稽核紀錄。依已啟用的元素在伺服器端執行權限策略,包括對外部工具的限制。開啟網頁版作品集瀏覽器,並將作品集備份或同步到 GitHub。
- 適用情境
- 適合想用可重複使用、可版本化的模組塑造助理的行為、語氣與能力,並保存在自己電腦上時使用;也適合把多個模組打包成一個可啟用單元並附帶權限限制。若需要伺服器端的權限層來約束助理可執行的操作,同樣適用。
- 執行需求
- 以 npm 套件形式透過 stdio 在本機執行,需要 Node.js 20 或更新版本;可用 npx 或本機 npm 安裝,並在 MCP 用戶端中指向它。不需帳號,可離線使用。選用環境變數包括用於自訂作品集位置的 DOLLHOUSE_PORTFOLIO_DIR,以及用於 GitHub 操作的 GITHUB_TOKEN。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 DollhouseMCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
DollhouseMCP
[npm version] [License: AGPL-3.0] [MCP Compatible] [Core Build & Test] [9600+ Tests] [GitHub Views]
[Quality Gate Status] [Security Rating] [Maintainability Rating] [Reliability Rating] [Windows] [macOS] [Linux]
Open-source AI customization through modular elements.
How It Works
Pick any path to start:
- Activate a starter element from your portfolio — your AI immediately changes
- Create any element type (persona, skill, template, agent, memory, ensemble) by describing what you want in plain English
- Edit any existing element to refine it
- Browse the community collection and install elements made by other users
Your portfolio (~/.dollhouse/portfolio/ on macOS/Linux, %USERPROFILE%\.dollhouse\portfolio\ on Windows) is a local folder that holds all your Dollhouse elements. It ships with 37 starters — including the dollhouse-expert-suite ensemble (persona + knowledge base) you can activate for guided help. Everything you create or install lands here. Share back to the community or sync to GitHub whenever you're ready.
Quick Start
v2.0.0 is now available. DollhouseMCP v2 is the default release. Release notes | Migration guide | Report issues
DollhouseMCP installs on any MCP-compatible AI client — Claude Code, Claude Desktop, Cursor, Gemini, Codex, and local LLMs. Core element management (create, activate, search, browse) works across all platforms. Advanced features (Gatekeeper confirmation flows, agentic loop execution) have been tested extensively on Claude Code and should work on any client that supports standard MCP tool call/response patterns.
Interactive Setup (any platform):
Opens a browser-based setup wizard with one-click install for Claude Desktop, Claude Code, Cursor, VS Code, Codex, Gemini CLI, Windsurf, Cline, and LM Studio. Detects existing installations, supports auto-updating and pinned versions.
Permission hook support in the setup wizard currently breaks down like this:
Claude Code (one command):
Claude Desktop (one-click install):
Download the DollhouseMCP Desktop Extension (.mcpb file) and double-click it. Claude Desktop handles the rest — no terminal required.
Other platforms — see the Quick Start Guide or run the interactive setup above.
Then start a conversation:
DollhouseMCP ships with 38 Dollhouse elements across all 6 types. Just describe what you want in natural language.
First time? The Public Beta Onboarding Guide walks you from install to your first activated Dollhouse persona in under 10 minutes.
Dollhouse Elements: Behavior, Capabilities, and Permissions
Dollhouse elements are modular building blocks that customize your AI. When you activate a Dollhouse element, you're not just changing a prompt — you're changing what tools the AI can access, what commands it can run, and what operations require your approval.
*Skills Compatibility
Dollhouse Skills (introduced July 2025) predate the agent skills format later adopted by Claude/Anthropic. DollhouseMCP includes a built-in lossless bidirectional converter between the two formats.
- Import: Convert agent skills → Dollhouse Skills via
convert_skill_format. Once converted, they're first-class Dollhouse elements — combinable with Personas, Templates, and other Skills inside Ensembles, managed by Dollhouse Agents, and protected by Gatekeeper policies.- Export: Convert Dollhouse Skills → agent skills for platforms that don't have DollhouseMCP installed.
- Roundtrip: The converter supports a lossless mode that preserves everything in both directions. A safe mode is also available that sanitizes potentially risky patterns during conversion.
All Dollhouse elements are readable markdown or YAML files stored in your local portfolio. You own them, you control them. When interacting with your AI, use "Dollhouse" to disambiguate — say "activate the Dollhouse code review persona" or "run the Dollhouse research agent" to ensure the AI uses DollhouseMCP elements rather than native platform features.
MCP-AQL: How Your AI Talks to DollhouseMCP
Most MCP servers expose dozens of individual tools, each consuming context tokens and forcing the LLM to pick the right one from a flat list. DollhouseMCP takes a different approach.
MCP-AQL (Model Context Protocol – Advanced Agent API Adapter Query Language) organizes all operations into 5 semantic endpoints — CRUDE: Create, Read, Update, Delete, Execute. The A pulls quadruple duty: Advanced query capabilities, Agent-first design, API consolidation, and Adapter layer to bridge other MCP servers and APIs to work directly with LLMs. Each endpoint groups operations by what they do to state, giving the LLM clear semantic signals about the consequences of each action:
Why This Matters
-
Semantic clarity — The LLM knows that calling
mcp_aql_readis always safe. Callingmcp_aql_deleteis always destructive. No guessing. -
Host-level permission control — MCP clients like Claude Code can set different approval policies per endpoint (auto-approve reads, require confirmation for deletes).
-
Progressive disclosure through introspection — The LLM starts with just 5 tool endpoints. It discovers operations, parameters, element formats, and usage examples at runtime by asking the server:
This is progressive disclosure built into the protocol — the LLM only loads what it needs, when it needs it. Unlike client-side solutions that require special harness support (like Claude Code's deferred tool loading), MCP-AQL's introspection works on any MCP client because it's just a standard tool call that returns structured data. No fancy client features required. The server describes itself.
Elements use the same principle: YAML frontmatter provides metadata for quick scanning, full markdown content loads only when activated. The LLM can list 200 elements at a glance and deep-dive into the ones it needs.
-
Token efficiency — 5 endpoints at ~4,300 tokens vs ~29,600 for ~40 discrete tools (85% reduction). Single mode reduces further to ~350 tokens.
Full MCP-AQL documentation — protocol design, CRUDE pattern rationale, introspection system, endpoint modes, and debugging.
The Gatekeeper: Elements Control Permissions
Every MCP-AQL operation passes through the Gatekeeper — a server-side permission system that Dollhouse elements directly control. When you activate a Dollhouse Persona, Skill, or Ensemble, its permission policies take effect immediately.
This works even if the MCP client has "Always Allow" enabled. The Gatekeeper runs server-side — after the client approves the tool call, the Gatekeeper still enforces the active element's policies. A deny from any active element cannot be overridden by the LLM or the client.
Use the two gatekeeper surfaces differently:
allow/confirm/denyare for MCP-AQL operation patterns likeread_*,edit_*,delete_element, andexecute_agentexternalRestrictionsis for external tool and hook patterns likeRead:*,Edit:*,Bash:git status*, andBash:rm *
How Policy Resolution Works
- Element deny — hard-blocked, cannot be confirmed or bypassed
- Element confirm — requires user confirmation even if the route default is auto-approve
- Element allow — auto-approves operations that would normally require confirmation
- Route default — the endpoint's built-in permission level (reads auto-approve, deletes confirm)
Policies stack across all active elements. If one persona allows an operation but another denies it, deny wins. This lets you compose elements with confidence — a security-focused persona can lock down operations while a skill adds capabilities.
What This Means in Practice
- Activate a read-only persona → the LLM can only browse and search, even if you've given the MCP client full access
- Activate a security analyst ensemble →
delete_elementandrm -rf *are denied, but code review tools work normally - Deactivate the restrictive element → full access returns immediately
- Nuclear sandbox →
deny: ['confirm_operation']blocks ALL confirmations, making the session completely read-only until the element is deactivated
Platform compatibility: The Gatekeeper enforces policies server-side — deny and allow decisions work on any MCP client. The confirmation flow (where the LLM calls
confirm_operationin response to a block) has been tested extensively on Claude Code and the DollhouseMCP Bridge. It should work on any MCP client where the LLM can interpret structured tool responses and make follow-up tool calls, but has not been rigorously verified on all platforms.
Gatekeeper documentation — confirmation flows, element policy syntax, sandbox model, external tool restrictions, and the session-allow problem.
Portfolio
Your Dollhouse elements live in a local portfolio at ~/.dollhouse/portfolio/ (macOS/Linux) or %USERPROFILE%\.dollhouse\portfolio\ (Windows). Ask your AI to "open the portfolio browser" (or call open_portfolio_browser via MCP-AQL) to browse them visually. Activation is done through the LLM — ask it to "activate the Dollhouse code review persona" and it handles the rest.
- Local-first — Everything works offline. No account required.
- 37 bundled elements — 7 personas, 7 skills, 8 templates, 7 agents, 3 memories, 5 ensembles ship with the server as starter content. Includes the dollhouse-expert-suite ensemble (persona + knowledge base memory) for guided help, and a Session Monitor agent that keeps your LLM synchronized with server state changes.
- GitHub sync — Optionally back up your portfolio to a GitHub repository and share elements with others.
- Community Collection — Browse the collection to see what's available, then install elements directly from your AI. Or submit your own.
GitHub Portfolio Sync Guide — back up to GitHub, sync between machines, submit to the community.
Dollhouse Agent Execution
Dollhouse Agents don't just run — every step passes through the MCP server, back to the LLM, and through the Gatekeeper. The LLM makes semantic decisions; the server handles programmatic enforcement. Neither side operates alone.
Each step in the loop:
- Gatekeeper checks every operation against active element policies — deny, confirm, or allow
- Autonomy Evaluator scores whether the agent should continue autonomously or pause for human input
- Danger Zone enforces hard blocks on high-risk operations (file deletion, external API calls, system commands)
- Step recording creates an audit trail of every decision and outcome
- The LLM receives autonomy guidance with each response — continue, pause, or escalate — so it never operates unmonitored
This means a Dollhouse Agent can't silently escalate. Every action is visible, every step is evaluated, and active element policies are enforced throughout the entire execution.
Platform note: The agentic loop relies on the LLM making sequential MCP tool calls and interpreting structured responses — standard MCP behavior. It has been tested extensively on Claude Code and the DollhouseMCP Bridge. The server-side enforcement (Gatekeeper, Danger Zone, step recording) is platform-independent. The LLM's ability to follow autonomy guidance (continue/pause/escalate) depends on the LLM's capability to interpret structured tool responses, which may vary across platforms.
Full Agent Execution documentation — the agentic loop, security enforcement, human-in-the-loop control, agent composition, resilience policies, and execution lifecycle operations.
More Features
- Web Portfolio Browser — Built-in web console for browsing and managing your portfolio visually. Ask your AI to "open the portfolio browser" or run
npm run webstandalone. - Batch Operations — Execute multiple operations in a single MCP-AQL request for efficient workflows
- Activation Persistence — Elements activated in a session are restored on server restart. No re-activation needed.
- Universal Backup — Built-in backup service for portfolio elements with restore capability
- Cache Memory Budget — Configurable memory budget for collection and index caches to control resource usage
- NLP Discovery — Jaccard similarity and Shannon entropy scoring for intelligent element search and discovery
- Cross-Element Relationships — GraphRAG-style mapping between elements for finding related content
- Security Hardened — Input sanitization, path traversal prevention, YAML injection protection, file locking, DOMPurify sanitization, content validation against hundreds of attack vectors. Security docs
- Cross-Platform — Tested on Windows, macOS, and Linux across Node.js 20+
Installation Options
The Quick Start above covers the fastest path. For more control:
Local Install (Recommended for Multiple Configs)
Then point your MCP client at node <path>/node_modules/@dollhousemcp/mcp-server/dist/index.js.
MCP-AQL Endpoint Modes
Note: CRUDE and Single are controlled by
MCP_AQL_ENDPOINT_MODE. Discrete mode uses a different variable:MCP_INTERFACE_MODE=discrete.
Common Configuration
Full environment variable reference · MCP client setup for other platforms
Documentation
Contributing
We welcome contributions — bug reports, feature requests, documentation, code, and community elements.
See CONTRIBUTING.md for the full development workflow, branch strategy, and code style guide.
Community
- GitHub Discussions — Questions, ideas, and showcase
- GitHub Issues — Bug reports and feature requests
- Discord — Real-time chat
- Browse the Collection — Community-contributed Dollhouse elements you can install
- Collection Repository — Source repo for submissions and contributions
License
AGPL-3.0-or-later — free to use, modify, and distribute. Network use requires source disclosure. See LICENSE for full terms.
Copyright 2024-2026 Mick Darling / DollhouseMCP
來源:README.md,提交 7de1f29
工具
0版本歷史
2- v2.0.43最新Oct 9, 2026
- v2.0.42Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分