Skip to main content
Glama
Random Persona MCP Server

Random Persona MCP Server

🎭 Random Persona MCP Server

MCP (Model Context Protocol) server exposing the six-layer persona engine.

Quick Start

pip install fastmcp
python server.py
# β†’ MCP server on http://127.0.0.1:4568

Related MCP server: Persona MCP

Tools

Tool

Description

persona_inject

Get system-prompt injection for current session state

persona_post_process

Post-process LLM response (silence, filler)

persona_status

Get human-readable state display

persona_command

Handle /persona commands

Usage with AstrBot

Configure astrbot_plugin_random_persona to point at this server:

{
  "mcp_url": "http://127.0.0.1:4568"
}

Environment Variables

Variable

Default

Description

PERSONA_PORT

4568

Server port

PERSONA_HOST

127.0.0.1

Bind address

PERSONA_DATA_DIR

./data

State persistence directory

MCP_TRANSPORT

sse

Transport: sse or stdio

Architecture

AstrBot plugin  ──MCP──►  persona_inject(session_id, user_id, message)
                         persona_post_process(session_id, response)
                         persona_command(...)

Internal pipeline:
  Mood drift β†’ Appraisal β†’ Emotion decay β†’ Relationship β†’ SpeechAct β†’ Lexicon β†’ Prompt

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      Not graded
      maintenance
      Enables AI to switch between 26+ expert personas on-demand with smart context detection, persona chaining, and 80%+ token savings through 'Submarine Mode' that keeps personas inactive until triggered.
      9
      1
      -
    • A
      license
      B
      quality
      D
      maintenance
      Provides a universal AI personality layer that uses a scientifically-backed Big Five engine to apply consistent character traits and brand voices across MCP-compatible platforms. It allows users to inject custom personality profiles or presets into AI interactions to ensure behavioral consistency.
      7
      8 npm
      77
      MIT