返回市场
祖先-MCP

祖先-MCP

作者:reeeeemo27 星标更新:2025-01-04

项目介绍

Ancestry MCP Server

smithery 徽章 MIT 许可证 Python 版本 PyPI 版本

基于 Model Context Protocol Python SDK 构建。

<a href="https://glama.ai/mcp/servers/pk5j4bp5nv"><img width="380" height="200" src="https://gips0.baidu.com/it/u=2663350515,3288963306&fm=3081&app=3081&f=PNG?w=760&h=400" alt="Ancestry MCP 服务器" /></a>

概述

这是一个使用 Python 实现的 Model Context Protocol (MCP),用于与 .ged 文件(通常在 Ancestry.com 上看到的 GEDCOM 文件)进行交互的服务器。

功能

  • 读取和解析 .ged 文件
  • 重命名 .ged 文件
  • .ged 文件中搜索特定的个人、家庭等信息

注意: 该服务器仅允许在通过 args 指定的目录内执行操作。

资源

  • gedcom://{file_name}: .ged 文件操作接口

工具

  • list_files

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

    • 重命名目录内的一个或多个 .ged 文件
    • 输入:
      • file_name (字符串): 原文件名
      • new_name (字符串)
  • view_file

    • 解析并读取 .ged 文件的全部内容
    • 也可以解析并读取多个文件
    • 可以从文件中获取特定信息,如出生日期、结婚日期等
    • 输入: name (字符串)

使用方法(Claude Desktop)

通过 Smithery 安装

要通过 Smithery 自动安装 Ancestry GEDCOM 服务器到 Claude Desktop:

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

手动安装

  1. 首先,安装包: pip install mcp-server-ancestry

  2. 将以下内容添加到你的 claude_desktop_config.json 中:

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

许可证

本项目采用 MIT 许可证 - 详情见 LICENSE 文件。