nameplate
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@nameplateparse Dr. John Smith Jr. 742 Evergreen Terrace"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
py-nameplate
A Python library, MCP server, and REST API for parsing unstructured US contact strings into structured components.
The Problem
You have messy contact data:
Dr. John Smith Jr. 742 Evergreen Terrace
JANE DOE 123 MAIN ST APT 2B BOSTON MA 02101
Smith, Robert "Bob" 456 Oak Ave, Chicago, IL 60601You need structured data you can actually use.
Related MCP server: StructureAI MCP Server
The Solution
One function that handles it all:
from nameplate import parse
result = parse("Dr. John Smith Jr. 742 Evergreen Terrace, Springfield, IL 62701")
# Name components
result.name.prefix # "Dr."
result.name.first # "John"
result.name.last # "Smith"
result.name.suffix # "Jr."
# Address components
result.address.street_number # "742"
result.address.street_name # "Evergreen"
result.address.street_type # "Terrace"
result.address.city # "Springfield"
result.address.state # "IL"
result.input_type # "contact"
result.validated # True (city/state in database)How It Works
The parse() function uses token-based segmentation to automatically find the boundary between name and address:
Dr. John Smith Jr. 742 Evergreen Terrace
└───── name ─────┘ └────── address ─────┘Segmentation algorithm:
Tokenize input into words
Scan for first numeric token that isn't a name suffix (III, 1ST, etc.)
Verify remaining tokens contain street indicators (St, Ave, ZIP, state, etc.)
Split at that boundary
Address parsing works backwards from the end:
Extract ZIP code (5 or 9 digits)
Extract state (2-letter code)
Extract city (validated against database)
Extract unit (Apt, Suite, #)
Remaining tokens are street components
Street-based enhancement fills in missing city/state:
If address has a street but no city, look up the street in the database
If street exists in exactly one location, auto-fill city and state
Common streets like "Main Street" exist in many cities and won't enhance
Installation
pip install py-nameplateOr with uv:
uv add py-nameplateUsage
Basic Parsing
from nameplate import parse
# Auto-detects input type
result = parse("123 Main St, Boston, MA 02101")
result.input_type # "address"
result = parse("Dr. Jane Doe")
result.input_type # "name"
result = parse("John Smith 123 Main St, Boston, MA 02101")
result.input_type # "contact"Enhancement
# Without enhancement - street alone has no city/state
result = parse("100 Dunwoody Club Dr")
result.address.city # ""
result.address.state # ""
# With enhancement - city/state auto-filled if street is unique in database
result = parse("100 Dunwoody Club Dr", enhance=True)
result.address.city # "Atlanta" (auto-filled)
result.address.state # "GA" (auto-filled)
result.enhanced # TrueNormalization
# Smart title case
result = parse("PATRICK O'BRIEN 123 MAIN ST", normalize=True)
result.name.last # "O'Brien" (not "O'brien")
result.address.city # "Boston" (not "BOSTON")
result = parse("RONALD MCDONALD", normalize=True)
result.name.last # "McDonald" (not "Mcdonald")Batch Processing
from nameplate import parse_batch
texts = [
"Dr. John Smith",
"123 Main St, Boston, MA 02101",
"Jane Doe 456 Oak Ave, Chicago, IL 60601",
]
result = parse_batch(texts, enhance=True)
result.total # 3
result.parsed_count # 3
result.enhanced_count # number with enhanced dataSupported Formats
Names
Format | Example |
Simple |
|
With prefix |
|
With suffix |
|
Last, First |
|
With nickname |
|
Name particles |
|
Roman numerals |
|
Addresses
Format | Example |
Standard |
|
With unit |
|
PO Box |
|
Directional |
|
ZIP+4 |
|
Contacts
Any combination of name followed by address:
John Smith 123 Main St, Boston, MA 02101
Dr. Jane Doe Jr. PO Box 456, Seattle, WA 98101MCP Server
Use with Claude Desktop or Claude.ai as an MCP tool.
Local (uvx)
Add to ~/.claude/claude_desktop_config.json:
{
"mcpServers": {
"nameplate": {
"command": "uvx",
"args": ["nameplate"]
}
}
}Hosted
{
"mcpServers": {
"nameplate": {
"type": "url",
"url": "https://nameplate.mcp.danheskett.com/"
}
}
}Available Tools
Tool | Description |
| Parse any input with auto-detection and optional enhancement |
| Batch parse multiple inputs |
Example Prompts
"Parse this: Dr. John Smith 742 Evergreen Terrace, Springfield, IL"
"Parse with enhancement: Jane Doe 100 Dunwoody Club Dr"
"Parse these contacts: John Smith, 123 Main St Boston MA, Jane Doe 456 Oak Ave Chicago IL"
REST API
Use the REST API for direct HTTP access without MCP.
Base URL: https://nameplate.mcp.danheskett.com
Endpoints
Endpoint | Method | Description |
| POST | Parse a single input |
| POST | Parse multiple inputs |
| GET | Health check |
Request Format
{
"text": "Dr. John Smith 123 Main St, Boston, MA 02101",
"normalize": false,
"enhance": false
}For batch requests, use texts (array) instead of text:
{
"texts": ["John Smith", "123 Main St, Boston, MA 02101"],
"normalize": true,
"enhance": true
}Examples
Basic parse:
curl -X POST https://nameplate.mcp.danheskett.com/api/parse \
-H "Content-Type: application/json" \
-d '{"text": "Dr. John Smith 123 Main St, Boston, MA 02101"}'Parse with enhancement:
curl -X POST https://nameplate.mcp.danheskett.com/api/parse \
-H "Content-Type: application/json" \
-d '{"text": "Jane Doe 100 Dunwoody Club Dr", "enhance": true}'Batch parsing:
curl -X POST https://nameplate.mcp.danheskett.com/api/parse/batch \
-H "Content-Type: application/json" \
-d '{"texts": ["John Smith", "123 Main St, Boston, MA 02101"], "normalize": true}'Health check:
curl https://nameplate.mcp.danheskett.com/healthPython API Reference
parse(text, normalize=False, enhance=False) -> ParseOutput
Parameter | Type | Description |
| str | Input string to parse |
| bool | Apply smart title case |
| bool | Fill in missing data from database |
ParseOutput
Field | Type | Description |
| str | "name", "address", or "contact" |
| NameOutput | Parsed name components |
| AddressOutput | Parsed address components |
| bool | True if parsing succeeded |
| bool | True if city/state found in database |
| bool | True if data was enhanced |
| list[str] | Fields that were enhanced |
| list[str] | Any parsing errors |
NameOutput
Field | Type | Description |
| str | Dr., Mr., Mrs., Rev., etc. |
| str | First/given name |
| str | Middle name(s) |
| str | Last/family name |
| str | Jr., Sr., III, PhD, etc. |
| str | Nickname if present |
AddressOutput
Field | Type | Description |
| str | House/building number |
| str | Street name |
| str | St, Ave, Blvd, etc. |
| str | N, S, E, W, etc. |
| str | Apt, Suite, Unit, etc. |
| str | Unit/apartment number |
| str | City name |
| str | Two-letter state code |
| str | 5 or 9 digit ZIP |
Data Sources
US Cities: 29,880 city/state combinations from kelvins/US-Cities-Database (MIT)
Street Names: 500k+ street/location mappings from USGS (ODbL)
Development
git clone https://github.com/dannyheskett/py-nameplate.git
cd py-nameplate
uv sync --extra dev
# Run tests
uv run pytest
# Lint
uv run ruff check src/ tests/
uv run ruff format src/ tests/Privacy
The hosted MCP server does not store, log, or retain any data. All parsing happens in memory. See the source code to verify.
License
BSD-3-Clause
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dannyheskett/py-nameplate'
If you have feedback or need assistance with the MCP directory API, please join our Discord server