Model Context Protocol server for the bitHuman AI avatar platform
Project description
bitHuman MCP server
A Model Context Protocol server that exposes the bitHuman avatar platform as tools any MCP-capable AI agent can call — Claude Desktop, Claude Code, Cursor, and others.
It's a thin, fully-documented wrapper over the public REST API
(https://api.bithuman.ai). Every tool maps to one documented endpoint; see the
API docs and the
OpenAPI spec.
Tools
| Tool | What it does |
|---|---|
validate_api_secret |
Check the API secret is valid (free). |
get_credit_balance |
Current credits, plan, and minutes estimate. |
get_usage |
Usage/metering history (paginated, date-filterable). |
list_voices |
Built-in (M1–M5 / F1–F5) and custom TTS voices. |
text_to_speech |
Synthesize speech → a WAV file. |
generate_agent |
Create an avatar agent from a prompt / image / video / audio. |
get_agent_status |
Poll agent generation progress. |
get_agent |
Fetch an existing agent's details. |
list_agents |
List your agents, newest first (paginated). |
update_agent_prompt |
Change an agent's system prompt. |
delete_agent |
Permanently delete an agent you own. |
agent_speak |
Make a live agent speak text in its active sessions. |
add_agent_context |
Silently inject knowledge into a live agent. |
get_dynamics |
List an agent's gesture animations. |
generate_dynamics |
Generate new gestures (wave, nod, laugh, idle…). |
create_embed_token |
Mint a 1-hour JWT to embed an agent on a website. |
upload_file |
Upload an asset (URL or local file) → CDN URL. |
create_webhook / list_webhooks / delete_webhook / test_webhook |
Manage signed event webhooks (agent.ready / agent.failed). |
Setup
You need an API secret from the Developer Dashboard.
The package is self-contained. The easiest way to run it without installing is
with uvx (recommended for MCP clients), or you
can pip install it.
# one-off run from a checkout
cd mcp
pip install .
BITHUMAN_API_SECRET=sk_... bithuman-mcp
Use with Claude Desktop / Claude Code
Add it to your MCP client config. For Claude Code:
claude mcp add bithuman \
-e BITHUMAN_API_SECRET=sk_your_secret \
-- uvx --from /absolute/path/to/bithuman-sdk-public/mcp bithuman-mcp
For Claude Desktop (claude_desktop_config.json) or any client that takes a
JSON server block:
{
"mcpServers": {
"bithuman": {
"command": "uvx",
"args": ["--from", "/absolute/path/to/bithuman-sdk-public/mcp", "bithuman-mcp"],
"env": { "BITHUMAN_API_SECRET": "sk_your_secret" }
}
}
}
Once published to PyPI you'll be able to drop the local path:
"args": ["bithuman-mcp"] with "command": "uvx".
Configuration
| Env var | Default | Purpose |
|---|---|---|
BITHUMAN_API_SECRET |
(required) | Your API secret. Never logged. |
BITHUMAN_API_BASE |
https://api.bithuman.ai |
API origin. |
BITHUMAN_MCP_TRANSPORT |
stdio |
stdio or streamable-http. |
BITHUMAN_MCP_TIMEOUT |
120 |
Per-request timeout (seconds). |
Notes
- Async work:
generate_agentandgenerate_dynamicsreturn immediately with aprocessingstatus. Pollget_agent_status/get_dynamicsuntilready(generation takes 2–5 minutes). - Credits:
generate_agent(~250 credits) andtext_to_speechconsume credits. Checkget_credit_balancefirst if cost matters. - Errors: non-2xx responses come back as a structured
{error, status_code, body, hint}object. The error catalog is at https://docs.bithuman.ai/api/errors.
License
Apache-2.0.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bithuman_mcp-0.2.0.tar.gz.
File metadata
- Download URL: bithuman_mcp-0.2.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d05bf4e27e2f047a02aa663bc4eda952c0b2d852b42fd9a2b16d15b9728216f
|
|
| MD5 |
00610ffb7555102d1efcc3274ebb2806
|
|
| BLAKE2b-256 |
99ad79736ac7f29f1cf7081b486981b75a023359bfaa56d152c605509578ca25
|
File details
Details for the file bithuman_mcp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: bithuman_mcp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d374c5af92841e989214a4f5a52eff0efdb124a37d5f57d1194535499affd96d
|
|
| MD5 |
9aa9fe0045afdf5f6e913a075d00a614
|
|
| BLAKE2b-256 |
a04486a3174b284920aaaea7c0880b5c0d050958c4476e26a0ceb40451fe5d66
|