Ancestry MCP Server

Ancestry MCP Server

用Python编写的祖先MCP服务器,允许与.ged(GEDCOM)文件进行交互。

祖先 MCP 服务器 - 快速开始指南

smithery 徽章 PyPI 版本

简介

祖先 MCP 服务器是一个基于 Model Context Protocol 的工具,用于与 GEDCOM (.ged) 文件交互,支持查看、重命名和搜索家谱数据。

安装

方法 1: 通过 Smithery 自动安装 (推荐)

npx -y @smithery/cli install mcp-server-ancestry --client claude

方法 2: 手动安装

pip install mcp-server-ancestry

然后在 claude_desktop_config.json 中添加:

{
  "mcpServers": {
     "ancestry": {
       "command": "mcp-server-ancestry",
       "args": ["--gedcom-path", "path/to/your/gedcom/files"]
     }
  }
}

主要功能

  • list_files: 列出目录中的 GEDCOM 文件
  • rename_file: 重命名 GEDCOM 文件
  • view_file: 读取和解析 GEDCOM 文件内容

使用示例

在 Claude 中,你可以这样使用服务器:

请列出我的 GEDCOM 文件
请查看 family_tree.ged 文件的内容
在 my_ancestry.ged 中查找所有出生于1920年的人

限制说明

  • 服务器只能操作 --gedcom-path 指定目录中的文件
  • 仅支持标准 GEDCOM (.ged) 文件格式

更多信息请访问 Smithery 项目页面