mcpField
M
mcp-persona

mcp-persona

Local
github.com/codesparSecurity275Updated 4w ago

About mcp-persona

mcp-persona is an MCP server for Persona, a developer-first identity verification and KYC platform. It suits teams that want to change verification flows without vendor tickets. Templates combine document, selfie, database, phone and bank checks into a Persona-hosted flow.

Key features

  1. 01Create, retrieve, approve and decline inquiries
  2. 02Manage persistent account records
  3. 03Retrieve reports with full verification detail
  4. 04Open and tag investigation cases
  5. 05List inquiry templates and webhook subscriptions

Use cases

  1. 01Start identity verification for a user and track the outcome
  2. 02Reuse account records across repeated verification sessions
  3. 03Open cases for periodic re-verification or manual review
  4. 04Redact inquiry data to meet GDPR erasure requests

MCP support

The server exposes Persona's inquiry, account, report and case endpoints as MCP tools that MCP clients can call.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"codespar-mcp-persona": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-persona"
],
"env": {
"PERSONA_API_KEY": "<PERSONA_API_KEY>",
"PERSONA_API_VERSION": "<PERSONA_API_VERSION>"
}
}
}
}
Run commandnpx -y @codespar/mcp-persona
Environment variables to set
PERSONA_API_KEYSecretPersona API key. Sent as 'Authorization: Bearer <value>'.
PERSONA_API_VERSIONPersona API version pin (sent as 'Persona-Version' header). Defaults to '2023-01-05'.

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@codespar/mcp-persona0.2.2

Tools

20

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
notestringNoInternal note shown in the Persona dashboard.
fieldsobjectNoPrefilled fields for the inquiry (e.g. { name-first, name-last, birthdate, address-street-1, address-city, address-subdivision, address-postal-code, address-country-code, email-address, phone-number }). Keys follow Persona's kebab-case convention.
account-idstringNoOptional existing Persona account id (act_...) to attach the inquiry to.
redirect-uristringNoURL to redirect the user to after completing the flow.
reference-idstringNoYour internal user id. Echoed back on webhooks and filterable via list_inquiries.
inquiry-template-idstringYesInquiry template id (itmpl_...) from your Persona dashboard. Defines what runs in the flow.
inquiry-template-version-idstringNoOptional pin to a specific template version (itmplv_...).

Details

From the project README

@codespar/mcp-persona

MCP server for Persona — modern developer-first identity verification and KYC.

Persona is the programmable identity layer favoured by modern startups and fintechs that prioritise DX and template-driven workflows. Instead of a fixed KYC pipeline, you compose inquiry templates in the Persona dashboard that reuse building blocks — document, selfie, database, phone, bank — and Persona orchestrates the hosted flow.

Fourth entry in CodeSpar's identity category. Where it fits alongside the others:

ProviderPositioning
UnicoBR leader — local PEP, court records, Receita Federal biometric pool
OnfidoGlobal challenger — document + facial similarity across 195+ countries
JumioGlobal enterprise — deeper fraud intelligence, longer operator track record
PersonaModern developer-first — great DX, template-driven programmable workflows

Pick Persona when you want to ship fast, iterate on the flow without a vendor ticket, and wire verification into your own product surfaces.

Tools (20)

ToolPurpose
create_inquiryCreate a Persona inquiry — a verification session bound to an inquiry template you configured in the Person...
retrieve_inquiryRetrieve an inquiry by id.
list_inquiriesList inquiries, filterable by reference-id (your internal user id) or status.
approve_inquiryMark an inquiry as approved.
decline_inquiryMark an inquiry as declined.
redact_inquiryRedact an inquiry (GDPR right-to-erasure).
create_accountCreate a persistent Persona account — a long-lived end-user record that multiple inquiries can attach to.
retrieve_accountRetrieve a Persona account by id, including summary PII and linked inquiries / verifications.
list_reportsList reports — individual verification artifacts (e.g.
retrieve_reportRetrieve a single report by id — returns the full verification detail (matches, scores, raw source data).
create_caseOpen a case — a workspace for an ongoing investigation tied to one or more inquiries / accounts.
resume_inquiryResume a paused inquiry — returns a fresh one-time session token / link so the end user can continue a flow...
update_accountPatch attributes on an existing Persona account (e.g.
list_accountsList Persona accounts, filterable by reference-id (your internal user id) or email.
run_reportCreate and run a standalone Persona report — not tied to an inquiry flow.
retrieve_caseRetrieve a case by id — full detail including status, assignee, linked objects, attached fields, and tags.
list_casesList investigation cases, filterable by status, assignee, or priority.
add_case_tagAdd a tag to a case.
list_templatesList inquiry templates configured in your Persona dashboard — returns each template's id (itmpl_...), name,...
list_webhooksList configured webhook subscriptions (Persona calls them 'Webhook subscriptions').

Flow

create_inquiry (inquiry-template-id=itmpl_...)
    -> user completes Persona-hosted flow (doc + selfie + whatever the template runs)
    -> retrieve_inquiry   (poll until status = 'completed' | 'approved' | 'declined' | 'needs_review')
    -> approve_inquiry / decline_inquiry   (record your final decision)
    -> list_reports / retrieve_report       (for standalone reports like watchlist / adverse-media)

Accounts (create_account / retrieve_account) persist end-user records across inquiries — attach future sessions via account-id on create_inquiry.

Cases (create_case) open a workspace for ongoing investigations (periodic re-verification, flagged users, manual review).

Install

npm install @codespar/mcp-persona

Environment

PERSONA_API_KEY="..."              # API key (required, secret)
PERSONA_API_VERSION="2023-01-05"   # Optional. Sent as Persona-Version header.

Authentication

Authorization: Bearer <PERSONA_API_KEY>
Persona-Version: 2023-01-05

The server handles both headers automatically.

JSON:API envelope

Persona uses a JSON:API-style request envelope: every POST body is wrapped as { data: { attributes: {...} } }. This server handles the wrapping for you — tool inputs mirror the inner attributes shape directly, with kebab-case keys per Persona's convention:

{
  "inquiry-template-id": "itmpl_ABC123",
  "reference-id": "user_42",
  "fields": {
    "name-first": "Ada",
    "name-last": "Lovelace",
    "birthdate": "1815-12-10",
    "address-country-code": "US"
  }
}

The server sends it on the wire as:

{ "data": { "attributes": { "inquiry-template-id": "itmpl_ABC123", ... } } }

Run

# stdio (default — for Claude Desktop, Cursor, etc)
npx @codespar/mcp-persona

# HTTP (for server-to-server testing)
MCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-persona

When to pick Persona vs other identity providers

SignalPick
Fast-moving startup / fintech, DX matters, want to iterate on flowPersona
Need custom workflow reusing doc + selfie + bank + phone verificationsPersona
User is Brazilian, need CPF + Receita Federal biometric matchUnico
Global coverage across 195+ countries, regulated fintech AML/PEPOnfido
Bank / large regulated marketplace needing deep fraud intelligenceJumio

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.