Connects Claude and other AI agents directly to CPFHub.io's Brazilian identity verification API. Exposes two tools: one to query full name, gender, and date of birth from any CPF number, and another to check your remaining API quota. Runs via npx with just an API key, no installation required. Built for agentic workflows that need to verify or enrich Brazilian identity data on the fly, whether you're building compliance checks, KYC automation, or user verification flows. Returns structured JSON in around 300ms. Free tier available, LGPD compliant, and works across Claude Desktop, Cursor, and Windsurf with simple config file entries.
Public tool metadata for what this MCP can expose to an agent.
lookup_cpfConsulta informações de um CPF brasileiro. Retorna nome, data de nascimento e gênero. Requer autenticação via API key.2 paramsConsulta informações de um CPF brasileiro. Retorna nome, data de nascimento e gênero. Requer autenticação via API key.
cpfstringapi_keystringget_quota_infoRetorna informações sobre o saldo de créditos e plano do usuário. Requer autenticação via API key.1 paramsRetorna informações sobre o saldo de créditos e plano do usuário. Requer autenticação via API key.
api_keystring🇺🇸 English | 🇧🇷 Português
Official Model Context Protocol (MCP) server for CPFHub.io — Brazilian CPF Lookup API for AI agents.
CPFHub.io is a REST API that returns identity data — full name, gender, and date of birth — from any Brazilian CPF number, in ~300ms, with 99.9% uptime and full LGPD compliance.
10M+ CPFs queried · 1,300+ active companies · 99.9% uptime
This MCP server exposes the following tools:
| Tool | Description |
|---|---|
get_person_by_cpf | Retrieve identity data (full name, gender, date of birth) from a Brazilian CPF number |
get_quota_information | Retrieve remaining API credits and current plan status |
{
"name": "get_person_by_cpf",
"description": "Retrieve identity data from a Brazilian CPF number",
"parameters": {
"type": "object",
"properties": {
"cpf": {
"type": "string",
"description": "Brazilian CPF number (digits only or formatted as XXX.XXX.XXX-XX)"
}
},
"required": ["cpf"]
}
}
# Set your API key
export CPFHUB_API_KEY=your_api_key_here
# Run the MCP server directly with npx (no install needed)
npx @cpfhub/mcp
Get your free API key at app.cpfhub.io — no credit card required.
curl -X GET "https://api.cpfhub.io/cpf/12345678909" \
-H "x-api-key: YOUR_API_KEY"
Response:
{
"success": true,
"data": {
"cpf": "12345678909",
"name": "Fulano de Tal",
"nameUpper": "FULANO DE TAL",
"gender": "M",
"birthDate": "15/06/1990",
"day": 15,
"month": 6,
"year": 1990
}
}
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"cpfhub": {
"command": "npx",
"args": ["-y", "@cpfhub/mcp"],
"env": {
"CPFHUB_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
CPFHubcommandexport CPFHUB_API_KEY=YOUR_API_KEY_HERE && npx -y @cpfhub/mcpAdd to your MCP configuration file:
{
"mcpServers": {
"cpfhub": {
"command": "npx",
"args": ["-y", "@cpfhub/mcp"],
"env": {
"CPFHUB_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
import os
import json
import requests
from openai import OpenAI
client = OpenAI(api_key=os.environ["OPENAI_API_KEY"])
CPFHUB_API_KEY = os.environ["CPFHUB_API_KEY"]
tools = [
{
"type": "function",
"function": {
"name": "get_person_by_cpf",
"description": "Retrieve identity data from a Brazilian CPF number",
"parameters": {
"type": "object",
"properties": {
"cpf": {"type": "string", "description": "Brazilian CPF number"}
},
"required": ["cpf"],
},
},
}
]
def get_person_by_cpf(cpf: str) -> dict:
response = requests.get(
f"https://api.cpfhub.io/cpf/{cpf.replace('.', '').replace('-', '')}",
headers={"x-api-key": CPFHUB_API_KEY},
)
return response.json()
messages = [{"role": "user", "content": "Who is the person with CPF 123.456.789-09?"}]
response = client.chat.completions.create(model="gpt-4o", messages=messages, tools=tools)
message = response.choices[0].message
if message.tool_calls:
args = json.loads(message.tool_calls[0].function.arguments)
result = get_person_by_cpf(args["cpf"])
print(result)
See examples/langchain_example.py for a full LangChain agent integration example.
| Resource | URL |
|---|---|
| Documentation | https://cpfhub.io/documentacao |
| Dashboard | https://app.cpfhub.io |
| OpenAPI Specification | https://github.com/cpfhub/cpfhub-openapi |
| Node.js SDK | https://github.com/cpfhub/cpfhub-node |
| Python SDK | https://github.com/cpfhub/cpfhub-python |
| All SDKs | https://github.com/cpfhub |
MIT © CPFHub.io
🇺🇸 English | 🇧🇷 Português
Servidor Model Context Protocol (MCP) oficial para CPFHub.io — API de Consulta de CPF Brasileiro para agentes de IA.
O CPFHub.io é uma API REST que retorna dados de identidade — nome completo, gênero e data de nascimento — de qualquer CPF brasileiro, em ~300ms, com 99,9% de uptime e total conformidade com a LGPD.
10M+ CPFs consultados · 1.300+ empresas ativas · 99,9% uptime
Este servidor MCP expõe as seguintes ferramentas:
| Ferramenta | Descrição |
|---|---|
get_person_by_cpf | Recupera dados de identidade (nome completo, gênero, data de nascimento) a partir de um CPF brasileiro |
get_quota_information | Recupera os créditos de API restantes e o status do plano atual |
{
"name": "get_person_by_cpf",
"description": "Retrieve identity data from a Brazilian CPF number",
"parameters": {
"type": "object",
"properties": {
"cpf": {
"type": "string",
"description": "Brazilian CPF number (digits only or formatted as XXX.XXX.XXX-XX)"
}
},
"required": ["cpf"]
}
}
# Configure sua chave de API
export CPFHUB_API_KEY=sua_chave_de_api_aqui
# Execute o servidor MCP diretamente com npx (sem instalação)
npx @cpfhub/mcp
Obtenha sua chave de API gratuita em app.cpfhub.io — sem cartão de crédito.
curl -X GET "https://api.cpfhub.io/cpf/12345678909" \
-H "x-api-key: SUA_CHAVE_DE_API"
Resposta:
{
"success": true,
"data": {
"cpf": "12345678909",
"name": "Fulano de Tal",
"nameUpper": "FULANO DE TAL",
"gender": "M",
"birthDate": "15/06/1990",
"day": 15,
"month": 6,
"year": 1990
}
}
Adicione o seguinte ao seu claude_desktop_config.json:
{
"mcpServers": {
"cpfhub": {
"command": "npx",
"args": ["-y", "@cpfhub/mcp"],
"env": {
"CPFHUB_API_KEY": "SUA_CHAVE_DE_API_AQUI"
}
}
}
}
CPFHubcommandexport CPFHUB_API_KEY=SUA_CHAVE_DE_API_AQUI && npx -y @cpfhub/mcpAdicione ao seu arquivo de configuração MCP:
{
"mcpServers": {
"cpfhub": {
"command": "npx",
"args": ["-y", "@cpfhub/mcp"],
"env": {
"CPFHUB_API_KEY": "SUA_CHAVE_DE_API_AQUI"
}
}
}
}
import os
import json
import requests
from openai import OpenAI
client = OpenAI(api_key=os.environ["OPENAI_API_KEY"])
CPFHUB_API_KEY = os.environ["CPFHUB_API_KEY"]
tools = [
{
"type": "function",
"function": {
"name": "get_person_by_cpf",
"description": "Retrieve identity data from a Brazilian CPF number",
"parameters": {
"type": "object",
"properties": {
"cpf": {"type": "string", "description": "Brazilian CPF number"}
},
"required": ["cpf"],
},
},
}
]
def get_person_by_cpf(cpf: str) -> dict:
response = requests.get(
f"https://api.cpfhub.io/cpf/{cpf.replace('.', '').replace('-', '')}",
headers={"x-api-key": CPFHUB_API_KEY},
)
return response.json()
messages = [{"role": "user", "content": "Quem é a pessoa com CPF 123.456.789-09?"}]
response = client.chat.completions.create(model="gpt-4o", messages=messages, tools=tools)
message = response.choices[0].message
if message.tool_calls:
args = json.loads(message.tool_calls[0].function.arguments)
result = get_person_by_cpf(args["cpf"])
print(result)
Veja examples/langchain_example.py para um exemplo completo de integração com agente LangChain.
| Recurso | URL |
|---|---|
| Documentação | https://cpfhub.io/documentacao |
| Dashboard | https://app.cpfhub.io |
| Especificação OpenAPI | https://github.com/cpfhub/cpfhub-openapi |
| SDK Node.js | https://github.com/cpfhub/cpfhub-node |
| SDK Python | https://github.com/cpfhub/cpfhub-python |
| Todos os SDKs | https://github.com/cpfhub |
MIT © CPFHub.io
CPFHUB_API_KEY*secretYour API key for the service
com.mcparmory/google-sheets
domdomegg/google-sheets-mcp
henilcalagiya/google-sheets-mcp
cct15/war-dashboard-data
moooonad/mcp-google-sheets-full
io.github.br0ski777/csv-to-json