Name Origin Predictor
STDIOPython-based MCP server that predicts name origins using Nationalize.io API.
Python-based MCP server that predicts name origins using Nationalize.io API.
A Python-based MCP (Model Context Protocol) server that predicts the origin of names using the Nationalize.io API.
git clone https://github.com/allglenn/mcp-name-origin-server.git cd mcp-name-origin-server
python3 -m venv venv source venv/bin/activate # On Unix/macOS # or .\venv\Scripts\activate # On Windows
pip install httpx
claude_desktop_config.json
file:{ "mcpServers": { "origin": { "command": "source", "args": [ "venv/bin/activate", "&&", "python3", "-u", "mcp-server.py" ], "shell": true, "env": { "PYTHONPATH": ".", "PYTHONUNBUFFERED": "1" } } }, "defaultServer": "origin", "version": "0.1.0" }
python mcp-server.py
predict_origin(name: str)
: Predicts the origin of a single name
batch_predict(names: list[str])
: Predicts origins for multiple names
{ "name": "glenn", "country": [ { "country_id": "US", "probability": 0.421 }, { "country_id": "AU", "probability": 0.044 } ] }
This project uses the Nationalize.io API to predict name origins. The API is free for basic usage with rate limits.
The server handles various error cases:
To contribute to this project:
This project is licensed under the MIT License - see the LICENSE file for details.