Personas MCP Server
An MCP (Model Context Protocol) server that provides access to the NVIDIA personas database through various tools.
Features
The server exposes the following tools:
- get_random_persona: Retrieve a random persona from the database
- get_persona_by_id: Get a specific persona by UUID
- search_personas: Search personas by various criteria (age, sex, state, occupation, education, etc.)
- get_persona_stats: Get statistics about the personas database
Installation and Usage
This MCP server is designed to be run with uvx:
# Install uv if you haven't already
curl -LsSf https://astral.sh/uv/install.sh | sh
# From the personas-mcp directory
uvx --from . personas-mcp
# Or from the parent personas directory
uvx --from ./personas-mcp personas-mcp
Configuration for Claude Desktop
Add this to your Claude Desktop configuration file:
macOS
Location: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows
Location: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"personas": {
"command": "uvx",
"args": ["--from", "/path/to/personas-mcp", "personas-mcp"]
}
}
}
Make sure to replace /path/to/personas-mcp with the actual path to the personas-mcp directory.
Tool Usage Examples
Get Random Persona
Use the get_random_persona tool
Search Personas
Use the search_personas tool with:
- age_min: 25
- age_max: 35
- state: "CA"
- limit: 5
Get Persona by ID
Use the get_persona_by_id tool with:
- uuid: "df6b2b96-a938-48b0-83d8-75bfed059a3d"
Get Database Statistics
Use the get_persona_stats tool
Development
The server expects the personas.parquet file to be in the parent directory (relative to the personas-mcp folder). If the file is not found, it will automatically download it from the NVIDIA Nemotron-Personas dataset on Hugging Face.
Directory structure:
personas/
├── personas.parquet (auto-downloaded if missing)
├── personas-mcp/
│ ├── src/
│ │ └── server.py
│ ├── pyproject.toml
│ └── README.md
Auto-download Feature
If personas.parquet is not found, the server will automatically download it from:
https://huggingface.co/datasets/nvidia/Nemotron-Personas/
The download is approximately 37MB and will show progress during download.
Metadata
Release files for personas-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| personas_mcp-0.1.0.tar.gz | 4.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| personas_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.6 kB
Release files / personas_mcp-0.1.0.tar.gz
| Download URL | personas_mcp-0.1.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ddcc574c415d90f2682d18e77ae574e700de3728bcc816f736b7a8860fcae5df
|
|
BLAKE2b-256 checksum How to use checksums |
4e82df141a265c4b7e6dd582dc78532c97fe4f35a0faa2107b426c681b66cfc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.14
|
Release files / personas_mcp-0.1.0-py3-none-any.whl
| Download URL | personas_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7418091c1b4ecfb53415e2e92c4668cbde562b2d67d03c6d4762b0344dfe6e44
|
|
BLAKE2b-256 checksum How to use checksums |
f51f6bfb610b922874bcf73604399da93d725adec62e7d89a207eedcfa2106e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.14
|
Security for personas-mcp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.