Claude Code
Set up Claude Code to control your Desktop Homunculus characters from the terminal.
Prerequisites
- Desktop Homunculus installed and running
- Node.js >= 22
Configuration
Add the Homunculus MCP server to your Claude Code configuration.
Project-level (.mcp.json in your project root):
{
"mcpServers": {
"homunculus": {
"command": "npx",
"args": ["-y", "@hmcs/mcp-server@latest"]
}
}
}
Global (~/.claude/settings.json):
{
"mcpServers": {
"homunculus": {
"command": "npx",
"args": ["-y", "@hmcs/mcp-server@latest"]
}
}
}
See the Claude Code documentation for the latest configuration options, as the settings format may change between versions.
Verify
Ask Claude Code:
"What characters are currently loaded on my desktop?"
If the connection is working, Claude Code will read the homunculus://characters resource and describe your loaded characters.
Skills
Claude Code Skills chain MCP tool calls into complex workflows. For example, the tech-lecture skill combines open_webview, speak_message, and set_expression to have a character deliver a full lecture with slides and narration.
Official skills are available in the skills/ directory of the repository. See the README there for installation instructions and the full catalog.
Custom Port
If Desktop Homunculus runs on a non-default port, set the HOMUNCULUS_HOST environment variable:
{
"mcpServers": {
"homunculus": {
"command": "npx",
"args": ["-y", "@hmcs/mcp-server@latest"],
"env": {
"HOMUNCULUS_HOST": "localhost:4000"
}
}
}
}
The default value is localhost:3100. You can change the port in ~/.homunculus/config.toml.
Next Steps
- MCP Reference — Explore all available tools, resources, and prompts
- Troubleshooting — Common issues and solutions