five-mcp
five-mcp
MCP server for the FIVE Persona Engine — an LLM persona constraint engine that generates structured JSON constraints to eliminate persona drift. Instead of describing personality in words (which LLMs interpret differently each turn), FIVE defines behavioral parameters the LLM executes as a recipe. See how it works →
Measured: with the constraint JSON + free harness, the demo character survived a 120-turn pressure test with zero persona breaks (plain prompt: 8 breaks; JSON alone: 1). Numbers, transcripts and scripts →
Quick Start
Install
pip install five-mcpConfigure
Set your API key as an environment variable:
export FIVE_API_KEY=five_sk_your_key_hereGet your key at fiveengine.dev.
Use with Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"five-character-engine": {
"command": "five-mcp",
"env": {
"FIVE_API_KEY": "five_sk_your_key_here"
}
}
}
}Use with other MCP clients
Any MCP-compatible client can connect via stdio transport:
five-mcpTool: generate
Generates persona constraints via the FIVE engine.
Parameters
Parameter | Type | Required | Description |
| string | Yes | Name of the character |
| A / B / C / D | Yes | Personality axis choices |
| 1–5 | No | Style sliders (default: 3) |
| string | No | Free-form description |
Response
{
"status": "ok",
"remaining": 42,
"constraint": { "..." }
}Pricing
Each generate call costs $1 and consumes one credit. Manage credits at fiveengine.dev.
Links
API & Docs: fiveengine.dev
GitHub: github.com/kiro0x/five-mcp
Design philosophy & examples: five-character-engine README
Measured evaluation (120-turn drift test): five-character-engine eval/
Engine repo: github.com/kiro0x/five-character-engine
License
MIT
Maintenance
Tools
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kiro0x/five-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server