{"id":48963783,"url":"https://github.com/raphink/geni-mcp","last_synced_at":"2026-04-18T03:04:09.971Z","repository":{"id":350060956,"uuid":"1181946358","full_name":"raphink/geni-mcp","owner":"raphink","description":"An MCP Server for Geni","archived":false,"fork":false,"pushed_at":"2026-04-08T17:24:15.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-08T19:21:27.988Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raphink.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-14T20:52:58.000Z","updated_at":"2026-04-08T17:24:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/raphink/geni-mcp","commit_stats":null,"previous_names":["raphink/geni-mcp"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/raphink/geni-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphink%2Fgeni-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphink%2Fgeni-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphink%2Fgeni-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphink%2Fgeni-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raphink","download_url":"https://codeload.github.com/raphink/geni-mcp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphink%2Fgeni-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31954738,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-18T03:04:07.742Z","updated_at":"2026-04-18T03:04:09.941Z","avatar_url":"https://github.com/raphink.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# geni-mcp\n\nAn MCP (Model Context Protocol) server that gives Claude access to [Geni](https://www.geni.com) — the collaborative genealogy platform. Use Claude to browse, search, correct, and extend your family tree.\n\n## Features\n\n| Tool | Description |\n|---|---|\n| `get_authorization_url` | Start the OAuth flow — get the URL to authorize Claude |\n| `exchange_code` | Complete OAuth — exchange the code for tokens |\n| `get_my_profile` | Get your own Geni profile |\n| `get_profile` | Look up any profile by ID |\n| `update_profile` | Correct names, dates, locations, biography |\n| `create_profile` | Add a new person to Geni |\n| `get_immediate_family` | Get parents, siblings, spouses, children |\n| `get_union` | Get a family unit (couple + children) |\n| `add_relation` | Add a parent, child, sibling, or spouse |\n| `search_profiles` | Search by name with optional birth/death filters |\n| `get_merge_candidates` | Find potential duplicate profiles |\n| `merge_profiles` | Merge a duplicate into a base profile |\n\n## Prerequisites\n\n1. A Geni account at [geni.com](https://www.geni.com)\n2. A registered Geni app — create one at [geni.com/platform/developer/apps](https://www.geni.com/platform/developer/apps)\n3. Node.js 20+\n\n## Setup\n\n### 1. Clone \u0026 install\n\n```bash\ngit clone https://github.com/raphink/geni-mcp.git\ncd geni-mcp\nnpm install\nnpm run build\n```\n\n### 2. Create a Geni developer app\n\n1. Go to [geni.com/platform/developer/apps](https://www.geni.com/platform/developer/apps)\n2. Create a new app\n3. Set the **Redirect URI** to:\n   - **Local use:** `http://localhost:3000/oauth/callback`\n   - **GCP Functions:** `https://YOUR_FUNCTION_URL/oauth/callback`\n4. Note your **App ID** (client ID) and **App Secret**\n\n### 3. Configure environment variables\n\n```bash\nexport GENI_CLIENT_ID=\"your_app_id\"\nexport GENI_CLIENT_SECRET=\"your_app_secret\"\nexport GENI_REDIRECT_URI=\"http://localhost:3000/oauth/callback\"\n\n# Optional — skip OAuth flow if you already have a token:\nexport GENI_ACCESS_TOKEN=\"your_access_token\"\nexport GENI_REFRESH_TOKEN=\"your_refresh_token\"  # enables auto-renewal\n```\n\n## Running locally (Claude Code / Claude Desktop)\n\n### Stdio mode (recommended for Claude Code)\n\nAdd to your Claude Code MCP config (`.claude/mcp.json` or `~/.claude/mcp.json`):\n\n```json\n{\n  \"mcpServers\": {\n    \"geni\": {\n      \"command\": \"node\",\n      \"args\": [\"/path/to/geni-mcp/dist/index.js\"],\n      \"env\": {\n        \"GENI_CLIENT_ID\": \"your_app_id\",\n        \"GENI_CLIENT_SECRET\": \"your_app_secret\",\n        \"GENI_REDIRECT_URI\": \"http://localhost:3000/oauth/callback\"\n      }\n    }\n  }\n}\n```\n\n### Claude Desktop config\n\nAdd to `~/Library/Application Support/Claude/claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"geni\": {\n      \"command\": \"node\",\n      \"args\": [\"/path/to/geni-mcp/dist/index.js\"],\n      \"env\": {\n        \"GENI_CLIENT_ID\": \"your_app_id\",\n        \"GENI_CLIENT_SECRET\": \"your_app_secret\",\n        \"GENI_REDIRECT_URI\": \"http://localhost:3000/oauth/callback\"\n      }\n    }\n  }\n}\n```\n\n## Deploying to GCP Cloud Functions\n\n```bash\ngcloud functions deploy geni-mcp \\\n  --gen2 \\\n  --runtime=nodejs22 \\\n  --region=europe-west1 \\\n  --source=. \\\n  --entry-point=geniMcp \\\n  --trigger-http \\\n  --allow-unauthenticated \\\n  --set-env-vars \"GENI_CLIENT_ID=your_app_id,GENI_CLIENT_SECRET=your_app_secret,GENI_REDIRECT_URI=https://YOUR_FUNCTION_URL/oauth/callback\"\n```\n\nThe function exposes two endpoints:\n- `POST /mcp` — MCP protocol (StreamableHTTP)\n- `GET /oauth/callback` — OAuth redirect handler\n\n### Using the deployed function with Claude Code\n\n```json\n{\n  \"mcpServers\": {\n    \"geni\": {\n      \"type\": \"streamable-http\",\n      \"url\": \"https://YOUR_FUNCTION_URL/mcp\"\n    }\n  }\n}\n```\n\n\u003e **Note on token persistence:** Cloud Functions are stateless. For production use, store tokens in [Cloud Secret Manager](https://cloud.google.com/secret-manager) or [Firestore](https://cloud.google.com/firestore) by implementing a custom `TokenStore`.\n\n## First use — OAuth flow\n\nThe first time you use the server (without pre-set tokens), ask Claude:\n\n\u003e \"Authorize my Geni account\"\n\nClaude will:\n1. Call `get_authorization_url` and give you a link\n2. You visit the link in your browser and click \"Allow\"\n3. Geni redirects to your callback URL with a `code` parameter\n4. Tell Claude the code (or Claude will read it from the URL)\n5. Claude calls `exchange_code` and you're authenticated\n\nAfter authenticating, Claude can do things like:\n\n\u003e \"Find all profiles named 'Johann Schmidt' born in the 1800s in Germany\"\n\n\u003e \"Show me the immediate family of profile-123456789\"\n\n\u003e \"Correct the birth date for profile-123456789 to 15 March 1847 in London, England\"\n\n\u003e \"Find duplicate profiles for profile-123456789 and merge them\"\n\n## Project structure\n\n```\nsrc/\n  index.ts          # Stdio MCP server (local use)\n  gcpFunction.ts    # GCP Cloud Functions HTTP handler\n  tools.ts          # MCP tool definitions and handlers\n  geni-client.ts    # Geni REST API client\n  oauth.ts          # OAuth 2.0 flow helpers\n  types.ts          # TypeScript types for Geni API\n  zod-to-json.ts    # Zod → JSON Schema converter\ndist/               # Compiled output (after npm run build)\n```\n\n## Development\n\n```bash\nnpm run dev         # Run with tsx (no compile step)\nnpm run build       # Compile TypeScript\nnpm run lint        # Type-check only\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphink%2Fgeni-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraphink%2Fgeni-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphink%2Fgeni-mcp/lists"}