Sponsored by Deepsite.site

23andme Raw Data File Lookup

Created By
obuchowski10 months ago
Querying genotype data by RSID from 23andMe raw file
Content

23andMe Raw Data MCP Server

A Model Context Protocol server that enables LLMs to query 23andMe raw genotype files by RSID (Reference SNP cluster ID). This server parses TSV-formatted 23andMe raw data files and provides instant access to genetic information, making it easy to look up specific genetic variants and their associated genotypes for research and educational purposes.

Available Tools

get_genotype_by_rsid - Get genotype for a given RSID, returns "--" if not found.

Required arguments:

  • rsid (string): Reference SNP cluster ID (e.g., 'rs1234567', 'rs9876543')

Installation

Using npm

git clone https://github.com/yourusername/23andme-mcp-server.git
cd 23andme-mcp-server
npm install

Prerequisites

  • Node.js v18 or higher
  • 23andMe raw data file (TSV format, downloadable from 23andMe account)

Configuration

Configure for Claude.app

Add to your Claude settings:

{
  "mcpServers": {
    "23andMe Genotype Lookup": {
      "command": "node",
      "args": ["/path/to/23andme-mcp-server/src/index.js", "/path/to/your-23andme-data.txt"]
    }
  }
}

Configure for Zed

Add to your Zed settings.json:

{
  "context_servers": {
    "23andme-lookup": {
      "command": "node",
      "args": ["/path/to/23andme-mcp-server/src/index.js", "/path/to/your-23andme-data.txt"]
    }
  }
}

Data Format

The server expects 23andMe raw data files in the standard TSV format:

# Header comments (ignored)
# rsid	chromosome	position	genotype
rs1234567	1	123456	TT
rs2345678	2	234567	CC
rs3456789	3	345678	AG

Example Interactions

Get genotype for a specific RSID:

{
  "name": "get_genotype_by_rsid",
  "arguments": {
    "rsid": "rs1234567"
  }
}

Response:

TT

Query missing RSID:

{
  "name": "get_genotype_by_rsid",
  "arguments": {
    "rsid": "rs9999999"
  }
}

Response:

--

Running the Server

Basic Usage

npm start your-23andme-data.txt

or

node src/index.js your-23andme-data.txt

With Sample Data

npm start sample-data.txt

Debugging

You can use the MCP inspector to debug the server:

npx @modelcontextprotocol/inspector node src/index.js sample-data.txt

Examples of Questions for Claude

  • "What is my genotype for rs1234567?"
  • "Look up my genetic variant rs9876543"
  • "Check if I have the rs1815739 variant and what genotype I have"
  • "What are my genotypes for rs1234567, rs2345678, and rs3456789?"

Privacy and Security

  • Local Processing: All genetic data processing happens locally on your machine
  • No Data Transmission: The server only reads your local data file and doesn't transmit genetic information externally
  • Read-Only Access: The server only reads your data file and never modifies it

Data Source

To use this server, you'll need to download your raw genetic data from 23andMe:

  1. Log into your 23andMe account
  2. Go to "Settings" → "Privacy" → "Download Data"
  3. Request and download your raw genetic data
  4. Use the downloaded file with this MCP server

Contributing

We encourage contributions to help expand and improve the 23andMe Raw Data MCP Server. Whether you want to add new genetic analysis tools, enhance existing functionality, or improve documentation, your input is valuable.

For examples of other MCP servers and implementation patterns, see: https://github.com/modelcontextprotocol/servers

Pull requests are welcome! Feel free to contribute new ideas, bug fixes, or enhancements to make the server even more powerful and useful for genetic research and education.

License

23andMe Raw Data MCP Server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

Disclaimer

This tool is intended for research, educational, and informational use only. It is not intended for medical or diagnostic purposes. Always consult with healthcare professionals for medical advice and genetic counseling.

Server Config

{
  "mcpServers": {
    "23andMe Genotype Lookup": {
      "command": "node",
      "args": [
        "~/src/index.js",
        "~/sample-data.txt"
      ]
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright McpPlaywright MCP server
Serper MCP ServerA Serper MCP Server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
WindsurfThe new purpose-built IDE to harness magic
DeepChatYour AI Partner on Desktop
ChatWiseThe second fastest AI chatbot™
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
RedisA Model Context Protocol server that provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
CursorThe AI Code Editor
Tavily Mcp
Amap Maps高德地图官方 MCP Server