Back to MCP directory
publicPublicdnsLocal runtime

ancestry-mcp

基于MCP协议的GEDCOM文件处理服务

article

README

🚀 祖先 MCP 服务器

本项目是一个基于 Model Context Protocol Python SDK 构建的服务器,用于与 .ged 文件(常见于 Ancestry.com 的 GEDCOM 文件)交互,具备读取、解析、重命名和搜索等功能。

smithery 徽章 [![MIT 许可证][mit-badge]][mit-url] [![Python 版本][python-badge]][python-url] [![PyPI 版本][pypi-badge]][pypi-url]

🚀 快速开始

通过 Smithery 安装

要通过 Smithery 自动安装祖先 GEDCOM 服务器,可使用以下命令:

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

手动安装

  1. 首先,安装该包:
pip install mcp-server-ancestry
  1. 将以下内容添加到你的 claude_desktop_config.json 文件中:
{
  "mcpServers": {
     "ancestry": {
       "command": "mcp-server-ancestry",
       "args": ["--gedcom-path", "path/to/your/gedcom/files"]
     }
  }
}

✨ 主要特性

  • 文件处理:能够读取和解析 .ged 文件,还可对其进行重命名操作。
  • 信息搜索:支持在 .ged 文件中搜索特定个人、家庭等信息。

注意: 该服务器的操作仅限于通过 args 指定的目录内。

📚 详细文档

资源

  • gedcom://{file_name}:GEDCOM 文件操作接口。

工具

list_files

  • 功能:列出指定目录内的 (一个或多个) .ged 文件。
  • 输入name(字符串)

rename_file

  • 功能:重命名指定目录内的 (一个或多个) .ged 文件。
  • 输入
    • file_name(字符串):旧文件名
    • new_name(字符串):新文件名

view_file

  • 功能:解析并读取指定 .ged 文件的完整内容,可解析和读取多个文件,还能从文件中获取特定信息,例如出生日期、结婚日期等。
  • 输入name(字符串)

📄 许可证

本项目根据 MIT License 分发,详见 LICENSE 文件获取详细信息。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client