Skip to main content

MCP Server for Chinese literary imagery analysis — tokenization, imagery extraction, frequency statistics, and cross-corpus comparison for digital humanities research.

Project description

mcp-server-imagery

面向数字人文研究的 MCP Server,提供中文文学文本的意象词自动提取与统计分析能力。

功能

  • tokenize: 中文分词与词性标注(古典诗词/白话双模式)
  • extract_imagery: 意象词双层提取(核心意象词 + 完整意象词)
  • analyze_corpus: 批量语料分析(频率、丰富度、共现矩阵)
  • compare_corpora: 两个语料库意象对比分析
  • export_results: 结果导出(JSON/CSV/Markdown)

安装

pip install dhcckb-mcp-server-imagery

使用

作为 MCP Server

在 Claude Code 或其他 MCP 客户端配置中:

{
  "mcpServers": {
    "imagery": {
      "command": "mcp-server-imagery"
    }
  }
}

命令行

mcp-server-imagery
# 或
python -m mcp_server_imagery

意象词典

内置 ~700 词条的唐宋诗词常见意象词典,分为:

  • 通用意象(跨文体):自然景物、季节时令、建筑器物等
  • 领域意象(红楼梦专用):如「通灵玉」「绛珠草」「太虚幻境」等

支持通过 customDict 参数在运行时加载自定词典。

许可

MIT

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

dhcckb_mcp_server_imagery-1.0.0.tar.gz (19.1 kB view details)

Uploaded Source

File details

Details for the file dhcckb_mcp_server_imagery-1.0.0.tar.gz.

File metadata

File hashes

Hashes for dhcckb_mcp_server_imagery-1.0.0.tar.gz
Algorithm Hash digest
SHA256 55548989e76e0ba8c74bb584e3e05cd8ff06fd9c87db835abd70d70e99732440
MD5 0d36fa689db8efb5ee34cf52478d74a2
BLAKE2b-256 7ce87856d7ac27b14f380fb3fd20b504ef1f74e8ea8c2ccf070e424b69f2f286

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