Chenji Affect

io.github.zhiyu-devPublished by GitHub account zhiyu-devv1.1.0Updated Oct 24, 2026

Affect analysis, 3D avatar params, empathy hints and somatic emotion decode.

VerifiedStreamable HTTPWeb executableMedia & DesignAI & ML

Overview

AI-generated overview

Chenji Affect is a remote MCP server that turns text into structured affect signals: emotion vectors, avatar animation parameters, empathy strategies and body-s

What you can do
Analyze text into an 8-dimensional emotion vector, emotion texture labels, causal intent and a natural-language state description (up to 2000 characters, Chinese or English). Generate 3D avatar driving parameters: blendshape, AU and curve animation data plus lighting and material atmosphere, with the upstream affect analysis. Produce a deterministic empathy response strategy (approach, tone, pacing, focus points, avoid-list) for conversational agents. Decode body-sensation text into structured emotion with valence/arousal and somatic anchor cues.
When to use it
Useful when building AI companions, virtual avatars or conversational agents that need consistent affect signals, avatar animation parameters or response-strategy hints from user text. Also relevant for wellness-style reflection on body-sensation descriptions.
Requirements
A remote streamable-HTTP endpoint; no local install needed. A Chenji API key is required, sent in the x-api-key header (or CHENJI_API_KEY for local setups). A free BASIC tier is available via RapidAPI or a trial key. The L2 avatar tool needs a key tier that includes L2. Network access to the service.
Before you install
Requires an API key in the x-api-key header; keep it private. Usage is metered and billed by character count (every 200 characters is one billing unit), and the avatar tool needs a higher tier. Raw text is sent to a third-party service, which states it is not persisted. Outputs are wellness and affect simulation only, not medical or diagnostic advice.

Installation

In SourceWeft

  1. Open Chenji Affect in the dashboard and add it to a workspace.
  2. Connect x-api-key credentials. They are stored privately and never shown on public pages.
  3. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.zhiyu-dev%2Fchenji-affect-mcp/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "chenji-affect": {
      "type": "http",
      "url": "https://taichusjs.cn/mcp",
      "headers": {
        "x-api-key": "<YOUR_API_KEY>"
      }
    }
  }
}

README

Chenji Affect MCP Server

Turn raw text into structured affect signals — an 8-dimensional emotion vector, emotion texture labels, causal intent, 3D avatar driving parameters, empathy response strategies, and somatic-sensation emotion decoding — inside any MCP-capable client (Claude Desktop, Cursor, Qoder, etc.).

Powered by the Chenji Affect API (taichusjs.cn).

Tools

ToolLevelDescription
analyze_textL1Text → 8-dim affect vector + emotion texture + intent + state description
generate_avatar_paramsL2Text → blendshape/AU/curve animation package + lighting/atmosphere package + upstream L1
empathy_hintL3Text → deterministic empathy response strategy (approach, tone, pacing, focus, avoid-list), ~20ms, no LLM
somatic_decodeL4Body-sensation text → structured emotion (primary affect, valence/arousal, texture, intent) + somatic anchors

Remote mode (no install)

Clients that support streamable-http MCP can connect directly, no local package needed:

json
{
  "mcpServers": {
    "chenji-affect": {
      "type": "streamable-http",
      "url": "https://taichusjs.cn/mcp",
      "headers": { "x-api-key": "cj-your-key-here" }
    }
  }
}

Install

Requires Python 3.10+.

bash
pip install "mcp>=1.0,<2"

Get an API key:

  • Free BASIC plan (100 req/day, 3,000/month): subscribe on RapidAPI, or request a trial key at https://taichusjs.cn/trial.html.

Configure (Claude Desktop example)

json
{
  "mcpServers": {
    "chenji-affect": {
      "command": "python",
      "args": ["/absolute/path/to/server.py"],
      "env": {
        "CHENJI_API_KEY": "cj-your-key-here"
      }
    }
  }
}

Environment variables:

VariableRequiredDescription
CHENJI_API_KEYYesYour Chenji API key
CHENJI_API_BASENoDefaults to https://taichusjs.cn

Notes

  • L1 input is limited to 2000 characters (every 200 chars = 1 billing unit).
  • generate_avatar_params requires a key tier that includes L2.
  • empathy_hint and somatic_decode are billed as L1-family calls (trial tier applies).
  • Privacy: raw text is never persisted by the API; only key hashes and telemetry are retained.
  • Wellness and affect-state simulation only — not a medical or diagnostic tool.

Links

Source: README.md at commit d024a60

Tools

4

analyze_text

L1 Affect Extraction: analyze text into an 8-dimensional emotion vector, emotion texture labels, causal intent classification, and a natural-language state description. text: input up to 2000 chars. lang: optional 'zh' or 'en'.

Parameterslangtextrequired

generate_avatar_params

L2 Avatar Driving Pipeline: one call returns blendshape/AU/curve animation parameters, lighting & material atmosphere package, adapter payload, plus the upstream L1 affect analysis. Requires a key tier that includes L2.

Parameterstextrequired

empathy_hint

L3 Empathy Response Strategy: converts text into a deterministic response strategy (approach, tone temperature, pacing, focus points, avoid-list) for AI companions and conversational agents. Deterministic table lookup, no LLM, ~20ms; privacy-first. Not a medical or therapeutic tool.

Parameterstextrequired

somatic_decode

L4 Somatic Emotion Decode: converts body-sensation text (e.g. tight chest, clenched fists) into structured emotion: primary affect, valence/arousal, emotion texture, causal intent, plus somatic anchor cues. Grounded in the somatic decoding discipline; wellness simulation only, not a diagnostic tool.

Parameterstextrequired

Version history

1
  1. v1.1.0LatestSep 16, 2026

Score

100% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts