References NSGC (National Society of Genetic Counselors) standardized pedigree nomenclature guidelines published in PubMed, ensuring compliance with Bennett 2008/2022 standards for medical pedigree documentation.
Pedigree MCP Server
Installation
Add to your MCP client configuration (e.g., Claude Desktop):
Build from Source
If you prefer to build from source:
Then use in your MCP client configuration:
Features
Bennett 2008 Standard Compliance
This implementation follows the NSGC Standardized Human Pedigree Nomenclature:
Symbol | Description | Property |
Square | Male |
|
Circle | Female |
|
Diamond | Unknown sex |
|
Filled shape | Affected individual |
|
Diagonal line | Deceased |
|
Arrow (lower-left) | Proband |
|
Double arrow (lower-left) | Consultand (person seeking counseling) |
|
Brackets [ ] | Adopted |
|
Double line | Consanguinity | Auto-detected from shared ancestors |
Text on double line | Consanguinity degree |
|
Horizontal bar | MZ (identical) twins |
|
Diagonal lines | DZ (fraternal) twins |
|
Dot in center | Carrier status |
|
Outlined dot | Obligate carrier (inferred) |
|
"P" inside symbol | Pregnancy |
|
"P" + weeks label | Pregnancy duration |
|
Small triangle | Early pregnancy loss (<20 weeks) |
|
Large triangle | Stillbirth (≥20 weeks) |
|
"EP" below symbol | Ectopic pregnancy |
|
Crossed lines (X) | Infertility |
|
Hash marks on line | Divorced/separated |
|
Line through offspring | No children by choice |
|
"A" in upper right | Ashkenazi ancestry |
|
"*" in upper left | Genetic anticipation |
|
"d. XXy" label | Age at death (auto-calculated) |
|
Arrow + "OUT" label | Adopted OUT (placed for adoption) |
|
Dashed brackets | Foster placement (temporary) |
|
Roman numerals I, II, III | Birth order in sibling group |
|
"E" marker (blue) | ART - Egg donor conception |
|
"S" marker (blue) | ART - Sperm donor conception |
|
"Em" marker (blue) | ART - Embryo donor conception |
|
"GC" marker (blue) | ART - Gestational carrier (surrogate) |
|
"SAB" label | Pregnancy outcome - Spontaneous abortion |
|
"TOP" label | Pregnancy outcome - Termination of pregnancy |
|
"SB" label | Pregnancy outcome - Stillbirth |
|
"Het" label (green) | Gene copy number - Heterozygous |
|
"Hom" label (green) | Gene copy number - Homozygous |
|
"CH" label (green) | Gene copy number - Compound heterozygous |
|
Dashed partnership line | Unmarried/common-law partnership |
|
Conditions (Bennett Standard - FREE TEXT)
Per Bennett 2008 standard, conditions are documented using free text. Simply provide a conditions array with any disease/condition name:
Examples:
{ "name": "Huntington's disease", "age": 45 }{ "name": "Type 2 diabetes" }(no age = affected status only){ "name": "Cystic fibrosis" }{ "name": "Hereditary hemochromatosis", "age": 38 }
Colors are auto-assigned from a palette based on unique condition names. Multiple conditions show as quadrants (male) or pie slices (female).
Genetic Testing Results
Supports any gene - use pattern {gene}_gene_test:
Gene test result codes:
type:
T(tested),S(screening),-(unknown)result:
P(positive),N(negative),-(unknown/VUS)
Labels appear as: BRCA1+ (positive), HTT- (negative)
Tools
get_pedigree_documentation
Returns comprehensive documentation about the pedigree data format. Always call this first before generating a pedigree.
generate_pedigree
Generates a family pedigree tree in PNG or SVG format.
Parameters:
Parameter | Type | Default | Description |
|
| required | Array of family members |
|
| 800 | Image width in pixels |
|
| 600 | Image height in pixels |
|
| 35 | Node diameter in pixels |
|
| #ffffff | Background color |
|
| ['age'] | Attributes to display |
|
| 'png' | Output format: png (base64 image) or svg (XML text) |
Data Format
Individual Object
Examples
📸
See the full gallery of standardized pedigree scenarios demonstrating Bennett 2008/2022 compliance, including gender diversity, twins, consanguinity, ART indicators, and complex multi-generation families.
Basic Three-Generation Pedigree
Neurological Condition Pedigree
Twins Example
Complex Family with Bennett Features
Development
Testing
159 tests total covering:
Validation (parent references, gender constraints)
SVG rendering (all symbol types, indicators)
Condition markers and multi-condition pie charts
Gene test formatting
Twin rendering (MZ with bar, DZ without)
Consanguinity detection
Bennett 2008 compliance (carrier, pregnancy, termination, divorced)
Edge cases (deep pedigrees, wide generations, half-siblings)
References
License
MIT License - see LICENSE