Skip to main content

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.md for 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 Distribution

bunduk_mcp-0.2.0.tar.gz (45.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bunduk_mcp-0.2.0-py3-none-any.whl (23.2 MB view details)

Uploaded Python 3

File details

Details for the file bunduk_mcp-0.2.0.tar.gz.

File metadata

  • Download URL: bunduk_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 45.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for bunduk_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1e8ca3b0d8937ccbbcb7e0f6afcddd6b63bec84e1dd5e53ea53fb6255c517500
MD5 2922c70e725c5c42813d60be210f1724
BLAKE2b-256 99d9f504f2539f11855c05065ed335056b604d708700f0f36231d921a7b2d0e4

See more details on using hashes here.

File details

Details for the file bunduk_mcp-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: bunduk_mcp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 23.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for bunduk_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd61eb3315967c8f8e7a9e446d5f664d9140870d3406a05de1cd048800e985db
MD5 bf003f334faa09a3c65b78dc9a94d638
BLAKE2b-256 a28e93d5918693eea179a87ceefe493d134665398d1cbef05a489de12937ca40

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page