Offers containerized deployment options with production and development configurations, supporting volume mounts for custom personas and environment variable configuration
Provides a complete GitHub-powered marketplace integration for browsing, searching, installing, and submitting personas, with support for authentication and automated submission workflows
DollhouseMCP
Platform Support
A comprehensive Model Context Protocol (MCP) server that enables dynamic AI persona management with an integrated GitHub-powered marketplace. DollhouseMCP allows Claude and other compatible AI assistants to activate different behavioral personas while supporting community sharing and monetization.
🌐 Repository: https://github.com/DollhouseMCP/mcp-server
🏪 Marketplace: https://github.com/DollhouseMCP/personas
📦 NPM Package: https://www.npmjs.com/package/@mickdarling/dollhousemcp
🌍 Website: https://dollhousemcp.com (planned)
📦 Version: v1.2.4 - MCP Protocol Compatibility Fix
🚀 Quick Start
Restart Claude Desktop and you're ready to use DollhouseMCP! Try list_personas
to get started.
✨ Key Features
Feature | Description |
---|---|
🎭 23 MCP Tools | Complete persona lifecycle management through chat interface |
🏪 GitHub Marketplace | Browse, search, install, and submit personas to community marketplace |
👤 User Identity System | Environment-based attribution for persona creators |
🆔 Unique ID System | Advanced ID generation: what-it-is_YYYYMMDD-HHMMSS_who-made-it |
💬 Chat-Based Management | Create, edit, and validate personas through conversational interface |
🔄 Real-time Operations | Live editing with automatic version bumping and validation |
🚀 Auto-Update System | Enterprise-grade auto-update with backup/rollback and dependency validation |
🛡️ Data Protection | Copy-on-write for default personas, comprehensive backup system |
🏠 Local-First Architecture | Full functionality without cloud dependency |
🔒 Enterprise-Grade Security (v1.2.4)
DollhouseMCP implements comprehensive security measures to protect your personas and system:
Security Features
- 🛡️ Content Sanitization: DOMPurify integration prevents XSS attacks in persona content
- 📝 YAML Injection Prevention: Secure parsing with schema validation and size limits
- 🔐 Token Security: GitHub tokens are validated, encrypted at rest, with rotation support
- 🐳 Container Hardening: Non-root execution, read-only filesystem, resource limits
- 🚦 Rate Limiting: Token bucket algorithm prevents API abuse (10 checks/hour default)
- ✅ Signature Verification: GPG verification ensures release authenticity
- 🔍 Input Validation: Comprehensive validation for all user inputs
- 📊 Security Monitoring: Audit logging for security-relevant operations
Security Testing
- 487 comprehensive tests including security-specific test suites
- Continuous security scanning with GitHub Advanced Security
- Vulnerability-free: All security alerts resolved (0 active)
📋 Prerequisites
- Node.js: v20.0.0 or higher (LTS recommended)
- npm: v10.0.0 or higher
- git: For cloning the repository
- Operating System: Windows, macOS, or Linux
Note: DollhouseMCP is developed on Node.js 24 but supports Node.js 20+ for broad compatibility.
🚀 Quick Start
Installation
NPM Installation (NEW! - Recommended)
After installation, add DollhouseMCP to your Claude Desktop configuration:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
Note: If you have other MCP servers configured, add dollhousemcp to your existing mcpServers object.
Automated Setup (Alternative) - Claude Desktop Only
Warning
Claude Desktop Only: The automated setup script is specifically designed for Claude Desktop integration. If you're using Claude Code, other AI platforms (ChatGPT, BoltAI, Gemini, etc.), or custom MCP implementations, please use the Manual Installation process below.
The setup script will:
- 📦 Install all dependencies
- 🔨 Build the TypeScript code
- 📍 Detect your installation path
- 🔧 Generate the exact Claude Desktop configuration
- 📋 Provide step-by-step setup instructions
Manual Installation
Note: Manual installation works with all MCP-compatible platforms including Claude Desktop, Claude Code, ChatGPT, BoltAI, Gemini, and custom implementations.
Claude Desktop Configuration
Add DollhouseMCP to your Claude Desktop configuration:
Location: ~/Library/Application Support/Claude/claude_desktop_config.json
(macOS)
For NPM Installation:
For Source Installation:
🔄 After configuration:
- Save the file
- Restart Claude Desktop completely
- All 23 DollhouseMCP tools will be available
🛠️ Available Tools (23 Total)
Core Persona Management
list_personas
- Display all local personas with enhanced metadataactivate_persona
- Activate by name, filename, or unique IDget_active_persona
- Get current persona informationdeactivate_persona
- Return to default modeget_persona_details
- View complete persona detailsreload_personas
- Refresh from filesystem
GitHub Marketplace Integration
browse_marketplace
- Browse personas by categorysearch_marketplace
- Search across all marketplace personasget_marketplace_persona
- View detailed marketplace persona infoinstall_persona
- One-click download and installationsubmit_persona
- Submit to marketplace via GitHub issue
User Identity Management
set_user_identity
- Set username for persona attributionget_user_identity
- View current identity statusclear_user_identity
- Return to anonymous mode
Chat-Based Persona Management
create_persona
- Guided persona creation through chatedit_persona
- Modify existing persona fieldsvalidate_persona
- Comprehensive quality validation
Auto-Update System
check_for_updates
- Check GitHub releases for available DollhouseMCP updatesupdate_server
- Automated git pull + npm install + build with backup creationrollback_update
- Restore previous version from automatic backupsget_server_status
- Comprehensive server status with version, git info, and system details
Persona Indicators
configure_indicator
- Configure how persona indicators appear in AI responsesget_indicator_config
- View current indicator configuration settings
📖 Usage Examples
Marketplace Operations
Persona Creation & Management
User Identity
Auto-Update Operations
The auto-update system provides enterprise-grade update management with safety features:
How Auto-Update Works:
- Version Check: Queries GitHub releases API for latest version
- Backup Creation: Automatically backs up current installation (including user personas)
- Update Process:
- Performs
git pull
to fetch latest code - Runs
npm install
for dependency updates - Rebuilds TypeScript with
npm run build
- Performs
- Verification: Validates the update succeeded
- Rollback Option: Keep last 5 backups for easy recovery
Safety Features:
- Rate limiting prevents API abuse
- GPG signature verification (when available)
- Dependency version validation
- Automatic backup retention (5 most recent)
- User personas preserved during updates
Persona Indicators
DollhouseMCP adds visual indicators to AI responses when a persona is active:
Configure indicators:
Environment variables for persistent configuration:
🖥️ Cross-Platform Installation
🐧 Linux Installation
Prerequisites
- Node.js: v20.0.0 or higher
- npm: v10.0.0 or higher
- git: For version control
Note: If your system's Node.js is older than v20, install from NodeSource or use nvm.
Installation Steps
Claude Desktop Configuration (Linux)
Configuration content:
🪟 Windows Installation
Prerequisites
- Node.js: v20.0.0 or higher
- npm: v10.0.0 or higher (included with Node.js)
- git: For version control
Installation Steps (PowerShell)
Claude Desktop Configuration (Windows)
Configuration content (use forward slashes or double backslashes):
🍎 macOS Installation
Prerequisites
- Node.js: v20.0.0 or higher
- npm: v10.0.0 or higher (included with Node.js)
- git: For version control
Installation Steps
Claude Desktop Configuration (macOS)
Configuration content:
🐳 Docker Installation
Quick Start with Docker
Docker Compose (Recommended)
Production deployment:
Development with hot reload:
Custom Personas with Docker
Docker Environment Variables
🧪 Testing
Running Tests
The project includes comprehensive tests for cross-platform compatibility:
Test Coverage
Current test coverage includes:
- ✅ 102 comprehensive tests covering all functionality
- ✅ Auto-update system - GitHub API, backup/rollback, dependency validation
- ✅ Security testing - Command injection prevention, input validation
- ✅ Cross-platform compatibility - Windows, macOS, Linux path handling
- ✅ Version validation - Parsing tests for git/npm output formats
- ✅ Edge case coverage - Network failures, missing dependencies, malformed input
Manual Verification
Verify your setup works correctly:
☁️ Cloud Deployment
Container Registries
The project supports deployment to:
- GitHub Container Registry (ghcr.io)
- Docker Hub
- AWS ECR
- Google Container Registry
Example Cloud Deployments
AWS ECS
Google Cloud Run
Azure Container Instances
🏗️ Project Structure
📝 Creating Custom Personas
Enhanced Persona Format
Create .md
files in the personas/
directory with this structure:
Metadata Fields
Required Fields
Field | Description |
---|---|
name | Display name for the persona |
description | Brief description of purpose and capabilities |
Optional Fields
Field | Description |
---|---|
unique_id | Auto-generated in format: what-it-is_YYYYMMDD-HHMMSS_who-made-it |
author | Creator username (uses DOLLHOUSE_USER environment variable or generates anonymous ID) |
category | One of: creative, professional, educational, gaming, personal |
triggers | Array of keywords that suggest when to use this persona |
version | Semantic version number (auto-incremented on edits) |
age_rating | Content rating: all, 13+, or 18+ |
ai_generated | Boolean flag indicating if content was AI-created |
price | Monetization field - TODO: Future Release (will support "free" or pricing tiers) |
📚 Built-in Personas
Persona | Purpose | Best For |
---|---|---|
Creative Writer | Imaginative storytelling and creative content | Brainstorming, creative writing, engaging narratives |
Technical Analyst | Deep technical analysis and systematic problem-solving | Architecture decisions, debugging, technical docs |
ELI5 Explainer | Simplifying complex topics for beginners | Teaching, onboarding, concept explanation |
Business Consultant | Strategic business analysis and recommendations | Strategy planning, business decisions, market analysis |
Debug Detective | Systematic debugging and troubleshooting | Bug hunting, system troubleshooting, root cause analysis |
🏪 Marketplace Integration (Beta)
🧪 Beta Feature: The GitHub-powered marketplace is currently in beta. Features may change based on community feedback.
DollhouseMCP includes an experimental GitHub-powered marketplace:
- Browse by Category: creative, professional, educational, gaming, personal
- Search Content: Find personas by keywords and descriptions
- One-Click Install: Download and integrate marketplace personas
- Community Submissions: Submit your personas via
submit_persona
tool - Version Control: Full Git history for all marketplace content
Note: Marketplace features require internet connection and GitHub API access. Rate limits may apply.
💼 Business Model & Legal
Licensing
- Core Server: AGPL-3.0 (prevents proprietary competing platforms)
- Persona Content: CC-BY-SA-4.0 for free personas, custom licenses for premium
- Platform Terms: Creator-friendly 80/20 revenue split (applies only to paid personas when monetization is implemented)
Platform Stability Commitments
- 90-day advance notice for monetization changes
- 12-month revenue sharing locks for existing paid personas
- Transparent governance for platform policy updates
- Full data portability rights
- Community advisory input on policy changes
🛠️ Development
Available Scripts
Script | Description |
---|---|
npm run build | Compile TypeScript to JavaScript |
npm run start | Run the compiled server |
npm run dev | Run in development mode with auto-reload |
npm run clean | Remove compiled files |
npm run rebuild | Clean and rebuild the project |
npm run setup | Install dependencies and build |
npm test | Run the comprehensive test suite |
npm run test:coverage | Run tests with coverage reporting |
Environment Variables
Customize server behavior with these environment variables:
🔧 Troubleshooting
Common Issues
Issue | Solution |
---|---|
Personas not loading | Check personas/ directory exists and has read permissions |
Server won't start | Run npm run rebuild to clean and rebuild |
Marketplace not working | Check internet connection and GitHub API access |
User identity not saving | Set DOLLHOUSE_USER environment variable before starting Claude |
"Cannot find module" errors | Ensure npm install completed successfully |
TypeScript compilation errors | Verify Node.js version is 20+ with node --version |
Tools not appearing in Claude | Restart Claude Desktop completely after config changes |
Default personas modified | v1.2.1+ uses copy-on-write; git restore if needed |
Update/rollback issues | Check write permissions; disable with DOLLHOUSE_DISABLE_UPDATES=true |
Rate limit errors | Wait 60 seconds; GitHub API has hourly limits |
Debug Steps
- Check build status:
- Verify persona files:
- Test server startup:
- Validate configuration:
- Test auto-update system:
- Validate personas:
Use the
reload_personas
tool to check for loading errors
🤝 Contributing
We welcome contributions! DollhouseMCP includes integrated tools for submitting personas directly from Claude.
Integrated Contribution Process (Recommended)
- Create or modify a persona using the chat-based tools:
- Validate your persona to ensure quality:
- Submit to the marketplace directly from Claude:This automatically creates a GitHub issue for community review.
Manual Contribution Process
- Fork the repository
- Create persona files in
personas/
orcustom-personas/
- Follow the metadata format and naming conventions
- Test thoroughly with
validate_persona
tool - Submit a pull request with clear description
Reporting Issues
Please include:
- Node.js version (
node --version
) - Operating system and version
- Complete error messages
- Steps to reproduce the issue
- Relevant persona files (if applicable)
- Claude Desktop configuration (without sensitive paths)
Development Guidelines
- Follow TypeScript best practices
- Maintain existing code style and patterns
- Add comprehensive error handling
- Update documentation for new features
- Test thoroughly across platforms before submitting PRs
- Include tests for new functionality
- Follow semantic versioning for releases
Development Workflow
📄 API Reference
MCP Tool Specifications
Each tool follows the MCP specification:
Tool Categories
Core Persona Management
Marketplace Integration
User Identity Management
Chat-Based Management
Auto-Update System
Error Handling
The server provides detailed error messages for:
- Invalid persona identifiers - Clear suggestions for valid names
- File system issues - Permission and path resolution errors
- Malformed persona files - YAML parsing and validation errors
- Network errors - GitHub API and marketplace connectivity issues
- Runtime errors - Server startup and operation failures
Response Formats
All responses follow consistent patterns:
- Success responses: Include requested data and operation status
- Error responses: Include error type, message, and suggested resolution
- Progress indicators: Step-by-step feedback for long operations
- Validation results: Detailed reports with recommendations
📄 License
This project is licensed under the AGPL-3.0 License with Platform Stability Commitments - see the LICENSE file for details.
Platform Stability Guarantees:
- 90-day advance notice for policy changes
- 12-month revenue sharing locks
- Full data portability rights
- Community advisory input
🏷️ Version History
v1.2.4 - July 10, 2025 (Current)
Critical Fix:
- ✅ Fixed MCP protocol compatibility - console output no longer breaks JSON-RPC communication
- ✅ Added MCP-safe logger utility for proper logging during protocol sessions
- ✅ Resolves connection failures in Claude Desktop
- ✅ Updated Docker tests to work with new logging approach
- ✅ Added comprehensive logger unit tests
v1.2.3 - July 10, 2025
Bug Fix:
- ✅ Fixed personas directory path resolution for production environments
- ✅ Changed from process.cwd() to __dirname-based paths
- ✅ Fixed setup script with correct tool count and repository URLs
v1.2.2 - July 10, 2025
- ✅ Comprehensive security enhancements:
- Content sanitization with DOMPurify (SEC-001)
- YAML injection prevention (SEC-003)
- GitHub token security (SEC-004)
- Docker container hardening (SEC-005)
- ✅ 487 comprehensive tests including extensive security coverage
- ✅ CI timing test fixes for reliable cross-platform testing
- ✅ TypeScript compilation fixes for all test files
- ✅ All security vulnerabilities resolved (0 active alerts)
v1.2.1 - January 8, 2025
- ✅ Critical bug fixes for data protection:
- Copy-on-write for default personas (Issue #145)
- User personas included in backups (Issue #144)
- ✅ Node.js 20+ requirement for npm publishing compatibility
- ✅ 372 comprehensive tests covering all functionality
- ✅ Enhanced security with all vulnerabilities resolved
- ✅ Improved documentation with clear prerequisites
v1.2.0 - January 7, 2025
- ✅ Rate limiting implementation to prevent API abuse
- ✅ GPG signature verification for release authenticity
- ✅ GitHub Advanced Security integration
- ✅ 309 tests with improved CI environment coverage
- ✅ Package optimization at 279.3 kB
v1.1.0 - July 4, 2025
- ✅ Platform-specific badges for Windows, macOS, Linux visibility
- ✅ GitHub Project management with issue templates and milestones
- ✅ ARM64 Docker fix switching from Alpine to Debian base images
- ✅ 100% workflow reliability (except Docker ARM64)
- ✅ First GitHub release with CHANGELOG.md
- ✅ 21 total MCP tools at time of release
Phase 2B+ - July 3, 2025
- ✅ Enterprise-grade auto-update system with 4 new MCP tools
- ✅ 50 comprehensive tests covering all functionality
- ✅ Security hardening - eliminated all command injection vulnerabilities
- ✅ Cross-platform support - Windows, macOS, Linux with CI/CD testing
- ✅ Docker containerization with production and development configurations
- ✅ 21 total MCP tools with backup/rollback and dependency validation
Phase 2B - July 1-2, 2025
- ✅ Complete chat-based persona management
- ✅ GitHub marketplace integration
- ✅ User identity and attribution system
- ✅ Real-time validation and editing
- ✅ Enterprise-grade GitHub Actions security
Phase 1 - July 1, 2025
- ✅ Fresh AGPL-3.0 licensed repository
- ✅ Enhanced unique ID system
- ✅ Anonymous user support
- ✅ Marketplace-ready metadata schema
🎭 Transform your AI interactions with the power of personas
For support, please open an issue or visit our marketplace.
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A comprehensive Model Context Protocol server that enables dynamic AI persona management with GitHub-powered marketplace integration, allowing Claude and other compatible AI assistants to activate different behavioral personas with community sharing capabilities.
- Platform Support
- 🚀 Quick Start
- ✨ Key Features
- 🔒 Enterprise-Grade Security (v1.2.4)
- 📋 Prerequisites
- 🚀 Quick Start
- 🛠️ Available Tools (23 Total)
- 📖 Usage Examples
- 🖥️ Cross-Platform Installation
- 🐳 Docker Installation
- 🧪 Testing
- ☁️ Cloud Deployment
- 🏗️ Project Structure
- 📝 Creating Custom Personas
- 📚 Built-in Personas
- 🏪 Marketplace Integration (Beta)
- 💼 Business Model & Legal
- 🛠️ Development
- 🔧 Troubleshooting
- 🤝 Contributing
- 📄 API Reference
- 📄 License
- 🏷️ Version History
Related MCP Servers
- -securityFlicense-qualityA comprehensive suite of Model Context Protocol servers designed to extend AI agent Claude's capabilities with integrations for knowledge management, reasoning, advanced search, news access, and workspace tools.Last updated -5TypeScript
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI assistants like Claude to interact with Google Cloud Platform environments through natural language, allowing users to query and manage GCP resources during conversations.Last updated -910262TypeScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server that connects Claude and other MCP clients to Aider, enabling AI assistants to efficiently edit files, create new files, and interact with git repositories through natural language.Last updated -9PythonThe Unlicense
- -securityAlicense-qualityA Model Context Protocol server that enables AI assistants like Claude to interact directly with Home Assistant, allowing them to query device states, control smart home entities, and perform automation tasks.Last updated -126PythonMIT License