Metadata-Version: 2.4
Name: mcp-digitalhuman
Version: 2026.11.30.0
Summary: MCP server for AceDataCloud Digital Human video, voice, and task APIs
Project-URL: Homepage, https://github.com/AceDataCloud/MCPs/tree/main/digitalhuman
Project-URL: Documentation, https://platform.acedata.cloud/documents/digitalhuman?utm_source=pypi&utm_medium=referral&utm_campaign=evergreen
Project-URL: Repository, https://github.com/AceDataCloud/MCPs
Project-URL: Issues, https://github.com/AceDataCloud/MCPs/issues
Author-email: AceDataCloud <support@acedata.cloud>
License: MIT
Keywords: acedatacloud,digitalhuman,mcp,video,voice
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
Classifier: Topic :: Multimedia :: Video
Requires-Python: >=3.10
Requires-Dist: cryptography>=42.0.0
Requires-Dist: httpx>=0.27.0
Requires-Dist: loguru>=0.7.0
Requires-Dist: mcp<2,>=1.2.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: redis<7,>=5.0.0
Provides-Extra: all
Requires-Dist: build>=1.2.0; extra == 'all'
Requires-Dist: fakeredis>=2.25.0; extra == 'all'
Requires-Dist: mypy>=1.10.0; extra == 'all'
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'all'
Requires-Dist: pytest-cov>=5.0.0; extra == 'all'
Requires-Dist: pytest>=8.0.0; extra == 'all'
Requires-Dist: respx>=0.21.0; extra == 'all'
Requires-Dist: ruff>=0.4.0; extra == 'all'
Requires-Dist: twine>=5.0.0; extra == 'all'
Provides-Extra: dev
Requires-Dist: mypy>=1.10.0; extra == 'dev'
Requires-Dist: ruff>=0.4.0; extra == 'dev'
Provides-Extra: release
Requires-Dist: build>=1.2.0; extra == 'release'
Requires-Dist: twine>=5.0.0; extra == 'release'
Provides-Extra: test
Requires-Dist: fakeredis>=2.25.0; extra == 'test'
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'test'
Requires-Dist: pytest-cov>=5.0.0; extra == 'test'
Requires-Dist: pytest>=8.0.0; extra == 'test'
Requires-Dist: respx>=0.21.0; extra == 'test'
Description-Content-Type: text/markdown

<!-- Generated by scripts/marketing_readmes.py from README.md; do not edit. -->
# Digital Human

<!-- mcp-name: io.github.AceDataCloud/mcp-digitalhuman -->

<img src="https://cdn.acedata.cloud/uploads/1083534c-b49d-4242-899e-b0d9190dddbc" width="64" height="64" alt="Digital Human">

A [Model Context Protocol](https://modelcontextprotocol.io) (MCP) server for the
AceDataCloud Digital Human API.

## Features

- Create lip-synced digital human videos from a source face video or image
- Clone voices from short reference audio samples
- Poll, batch-retrieve, list recent history, or delete Digital Human tasks

## Connect locally

Use the local stdio package and an AceDataCloud API token. The public hosted HTTPS endpoint could not be verified, so this README does not offer it as a connection option. The local MCP process still calls AceDataCloud's API; it does not run the underlying service offline.

<!-- BEGIN TOKEN ONBOARDING -->
1. Open [Ace Data Cloud → Applications](https://platform.acedata.cloud/console/applications?utm_source=pypi&utm_medium=referral&utm_campaign=evergreen). Sign in, or register an account first.
2. Find **General application**. A general key can use the services available to your account; a dedicated application's key is limited to its service. Check the required service/model access and [current pricing](https://platform.acedata.cloud/models?utm_source=pypi&utm_medium=referral&utm_campaign=evergreen).
3. Copy the **API Key** from the General application card, or open **Keys / Manage Keys** to copy an existing key. Paste only the raw token into the client's API Key / API Token field or environment variable, without quotation marks, spaces, or `Bearer `. Only a manually configured HTTP `Authorization` header needs the `Bearer ` prefix. A `platform-...` account-management token cannot replace a generation API key.

![Copy an application API key or open Manage Keys](https://raw.githubusercontent.com/AceDataCloud/NanoBananaDify/2522b2f57210597af2db866445319334a1677a23/_assets/tutorial/get-api-key-en.png)

Confirm the application's balance can cover your first request; any trial allowance is whatever your account currently displays. Task lookup does not grant permission to submit a generation. Never put the key in a prompt, shared workflow, screenshot, or Git commit. If authentication fails, check the full copied value, application/service access, expiration, usage limit, and balance.

**Optional — separate integration key:** After setup, use **Keys / Manage Keys → Create** if you need an independently revocable key. Review **Expiration Time**, **Set Usage Limitation**, and **Allowed APIs**, then copy the new token from the key list. See the [detailed credential guide](https://platform.acedata.cloud/documents/platform-credential-create?utm_source=pypi&utm_medium=referral&utm_campaign=evergreen).
<!-- END TOKEN ONBOARDING -->


### Local stdio

In a client with MCP Registry support, search for `io.github.AceDataCloud/mcp-digitalhuman` and select the PyPI stdio package. Supply your application token in the client’s secret settings. After connecting, open the tool list and check for `digitalhuman_create_video` and `digitalhuman_get_task`. Listing tools confirms the local connection without submitting a generation. Use only media you own or have permission to use.

Install the package and give the local process an API token:

```bash
python -m pip install mcp-digitalhuman
export ACEDATACLOUD_API_TOKEN='YOUR_API_TOKEN'
mcp-digitalhuman
```

For Claude Desktop local MCP, merge this entry into the file opened by its developer settings (`~/Library/Application Support/Claude/claude_desktop_config.json` on macOS). `uvx` requires [uv](https://docs.astral.sh/uv/) on `PATH`:

```json
{
  "mcpServers": {
    "digitalhuman": {
      "command": "uvx",
      "args": ["mcp-digitalhuman"],
      "env": {"ACEDATACLOUD_API_TOKEN": "YOUR_API_TOKEN"}
    }
  }
}
```

Keep this user-level file private. Self-hosted HTTP uses `mcp-digitalhuman --transport http --port 8000`; expose it only with suitable network and TLS controls. Local execution still calls the AceDataCloud API.

### Check the connection

Confirm that the MCP client loads its tools. For an existing task ID, `digitalhuman_get_task` makes an authenticated query; loading the tool alone does not prove downstream API access. A real service request can be billed. If it returns 401, check the API token; if it returns 403 or an account/balance error, read that response before retrying.

## Development

```bash
pip install -e ".[dev,test]"
pytest -q
ruff check .
```

## Documentation

<!-- canonical-documentation -->
[Documentation](https://platform.acedata.cloud/documents/digitalhuman?utm_source=pypi&utm_medium=referral&utm_campaign=evergreen)

## API parameter behavior

`digitalhuman_get_tasks_batch` retrieves exactly the supplied IDs in input order using authenticated single-task requests. It does not list recent history. A failed retrieval is reported as an error rather than replaced with unrelated tasks.

Use `digitalhuman_list_tasks(limit=20, type="voices")` to list the authenticated caller's recent tasks, newest first. `limit` is 1–100; optional `type` is `videos` or `voices`. `created_at_min` and `created_at_max` filter strictly after/before Unix timestamps in seconds. This uses the API's `retrieve_batch` history action, without an ID array. The result retains `count` and detailed `items`; media URLs and voice IDs are nested in each item's `response`. `started_at`, `finished_at` and `elapsed` can be null while processing.
