Skip to main content

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

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.1.0.tar.gz (40.1 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for dhcckb_mcp_server_imagery-1.1.0.tar.gz
Algorithm Hash digest
SHA256 7f63f2a1584152563f0e24b4ad36bb9a31bc0dc8ac482b75e7751c5263816a6c
MD5 2b4ccde14548ae73ed76b5988ed2413d
BLAKE2b-256 04f52d05a908db8fd09ea45e2eda6b48485e2c762824b11773bab956f03969b7

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.1

1 file

This release

1.1.0 This release

1 file

1.0.0

1 file

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