Cpfhub MCP Server

MCP server for CPFHub.io. Query Brazilian CPF data directly from AI agents.

Local serverstdioPython

What is the Cpfhub MCP server?

Connect Cpfhub to Claude, Cursor or any other MCP client and it stops being a tab you switch to. MCP server for CPFHub.io. Query Brazilian CPF data directly from AI agents. The cpfhub mcp server is what makes that connection.

What the server does

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.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • 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
  • Ferramenta — Descrição
  • Cursor — 1. Go to Settings > Features > MCP. 2. Click + Add New MCP Server. 3. Name: CPFHub 4. Type: command 5. Command: export
  • Windsurf — The Windsurf tool exposed by this server

Credentials and setup notes

Configuration is passed through the environment: CPFHUB_API_KEY, YOUR_API_KEY, OPENAI_API_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Installation

The server ships on npm as @cpfhub/mcp, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

Where it fits

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Cpfhub's toolset — get_person_by_cpf, get_quota_information, Ferramenta and 2 more — is a fair guide to whether it matches your workflow. It is maintained by cpfhub; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
get_person_by_cpfRetrieve identity data (full name, gender, date of birth) from a Brazilian CPF number
get_quota_informationRetrieve remaining API credits and current plan status
FerramentaDescrição
Cursor1. Go to **Settings** > **Features** > **MCP**. 2. Click **+ Add New MCP Server**. 3. Name: CPFHub 4. Type: command 5. Command: export CPFHUB_API_KEY=YOUR_API_KEY_HERE && npx -y @cpfhub/mcp
WindsurfThe Windsurf tool exposed by this server.

How to install the Cpfhub MCP server

{
  "mcpServers": {
    "cpfhub": {
      "command": "npx",
      "args": ["-y", "@cpfhub/mcp"],
      "env": {
        "CPFHUB_API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
CPFHUB_API_KEYCredential the server authenticates with.Yes
YOUR_API_KEYCredential the server authenticates with.Yes
OPENAI_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Cpfhub to get person by cpf.
  • Use Cpfhub to get quota information.
  • Use Cpfhub to Ferramenta.

Frequently asked questions

It connects Cpfhub to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (get_person_by_cpf, get_quota_information, Ferramenta, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Cpfhub directly.