Skip to main content

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.md for design, scenarios, and roadmap.

Metadata

Release files for bunduk-mcp 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for bunduk-mcp 0.2.1
File Interpreter ABI Platform
bunduk_mcp-0.2.1-py3-none-any.whl Python 3 none any Details

Release files / bunduk_mcp-0.2.1-py3-none-any.whl

Download URL bunduk_mcp-0.2.1-py3-none-any.whl
Size 23.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
0cc9d850fc8f7e2b1592561fa37b2ddf74093a2f31c5d7b41732c297cef8c736
BLAKE2b-256 checksum
How to use checksums
c92b179f8f4f4da4a5952a5de1c96538435e46bec24725292e24ef2d1897afcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Security for bunduk-mcp 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page