
xtree
io.github.xtree-io/xtree
WeChat tools for accounts, articles, and Channels. Other platforms use REST.
Documentation
xtree-mcp — XTREE MCP server
MCP server for XTREE, a real-time social media data API. This repository exposes WeChat tools (search, Channels, article metrics, account history, library search) plus account balance for Cursor, Claude Desktop, and any MCP client. Other live platforms are on the REST API and the Python SDK. Not a BI or copywriting product.
Tools call https://api.xtree.io with your own API Key and wallet (pay per call).
Install / run
uvx xtree-mcp
The package is on PyPI. To run the GitHub mirror instead:
uvx --from "git+https://github.com/xtree-io/xtree-mcp.git" xtree-mcp
Or install editable after cloning:
git clone https://github.com/xtree-io/xtree-mcp.git
cd xtree-mcp
pip install xtree-sdk
pip install -e .
Get an API Key
- Sign up at www.xtree.io.
- Set
XTREE_API_KEY=xt_live_....
Cursor / Claude config
{
"mcpServers": {
"xtree": {
"command": "uvx",
"args": ["xtree-mcp"],
"env": {
"XTREE_API_KEY": "xt_live_..."
}
}
}
}
Billing
Each tool call is a billed API request from your wallet (CNY). Incomplete delivery is not billed. Unit prices: API Catalog. Scenario playbooks (when to call which tool, pagination): xtree-skills.
Docs
- Website docs: https://www.xtree.io/docs
- OpenAPI: https://api.xtree.io/api/openapi.json
- Python SDK: https://github.com/xtree-io/xtree-python
- Skills: https://github.com/xtree-io/xtree-skills
Environment
| Variable | Required | Default |
|---|---|---|
XTREE_API_KEY | yes | — |
XTREE_BASE_URL | no | https://api.xtree.io/api |
XTREE_VERIFY_CODE | no | — |
Mirror notice
Do not develop in this repository. Public mirror only. Issues welcome. Contact: business@xtree.io.
License
MIT.
xtree-mcppip install xtree-mcp