MCP server for Chinese history study: BiogRef/TextRef CSVs, CBDB/TGAZ enrichments
Project description
Bunduk MCP — Chinese History Study Server
MCP server exposing BiogRef/TextRef CSVs as resources and tools for Chinese history study, with optional live CBDB and CHGIS TGAZ enrichments.
Quick Start
- Requirements: Python 3.10+
- Data: CSVs are expected under
references/(already present in this repo).
Install (editable):
pip install -e .
Run (stdio transport):
mcp-chinese-history
or
python -m bunduk_mcp.server
This starts an MCP stdio server suitable for MCP-compatible clients.
Implemented
- Resources:
biogref://{source}/person/{person_id},textref://{source}/work/{primary_id} - Tools: person.search, person.get, crosswalk.person, text.search
- Entity resolution: entity.resolve_people, entity.resolve_books
- Place lookup (TGAZ): place.lookup (online; safe fallback if offline)
- CBDB API thin wrapper: cbdb.person (online; safe fallback if offline)
- Disambiguation: disambig.person (rule-based scoring)
- HTML builder: html.build_annotations (deterministic wrapping with tooltips)
- Dataset management (scaffold): dataset.list, dataset.reload (update/sync stubbed)
Configuration
BUNDUK_MCP_REFERENCES_DIR— override path to CSVs (default:references)BUNDUK_HTTP_TIMEOUT— HTTP timeout seconds (default: 10)
Notes
- Network-enriched tools return clear errors when offline; the rest work fully offline using local CSV files.
- CSV BOM is handled; fields are normalized but values preserve Chinese text.
- See
MCP_PLAN.mdfor design, scenarios, and roadmap.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 bunduk_mcp-0.1.3-py3-none-any.whl.
File metadata
- Download URL: bunduk_mcp-0.1.3-py3-none-any.whl
- Upload date:
- Size: 18.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b51366c5a6962e217a166271741431743f4b2a22a302c477aeab360b624f9d2
|
|
| MD5 |
80a0273e8e15137419f895ea586e4d42
|
|
| BLAKE2b-256 |
8399e20b6c1527753ff9fce99679e1d3659f9e7fed3ad15b64e1a1a7b88c4281
|