loading…
Search for a command to run...
loading…
Connects AI assistants to the Hub API, enabling them to manage resources such as customer leads through structured tools. It provides validated operations for c
Connects AI assistants to the Hub API, enabling them to manage resources such as customer leads through structured tools. It provides validated operations for creating customer records, supporting specific Brazilian fiscal ID (CPF/CNPJ) validation rules.
An MCP (Model Context Protocol) server that exposes Hub API operations as tools for AI agents and MCP-compatible clients (e.g. Claude Desktop, GitHub Copilot, Cursor).
srp-hub-mcp acts as a bridge between AI assistants and the Hub API. It runs as a local stdio-based MCP server, allowing AI agents to interact with Hub resources — such as creating customer leads — using structured, validated inputs.
HUB_API_TOKEN for authenticating against the Hub APInpm install
npm run build
The server is configured via environment variables:
| Variable | Required | Default | Description |
|---|---|---|---|
HUB_API_TOKEN |
Yes | — | Bearer token for Hub API auth |
HUB_API_BASE |
No | http://localhost:3001/v2 |
Base URL of the Hub API |
HUB_API_TOKEN=your_token node build/index.js
Add the following to your MCP client config (e.g. mcp.json or claude_desktop_config.json):
{
"mcpServers": {
"srp-hub-mcp": {
"command": "npx",
"args": ["srp-hub-mcp"],
"env": {
"HUB_API_TOKEN": "your_token_here",
"HUB_API_BASE": "https://your-hub-api.example.com/v2"
}
}
}
}
Download and install Node.js >= 18 from https://nodejs.org.
Choose the LTS installer for Windows (.msi).
Verify the installation by opening Command Prompt or PowerShell:
node -v # should print v18.x.x or higher
npm -v
npx -v
Download and install Claude Desktop from https://claude.ai/download.
Open it at least once so it creates its configuration folder.
The configuration file is located at:
%APPDATA%\Claude\claude_desktop_config.json
You can open it quickly by pressing Win + R, pasting the path below, and pressing Enter:
%APPDATA%\Claude\claude_desktop_config.json
Or navigate manually:
C:\Users\<YourUsername>\AppData\Roaming\Claude\claude_desktop_config.json
If the file does not exist yet, create it as a new empty file in that folder.
Open claude_desktop_config.json with any text editor (e.g. Notepad, VS Code) and add the block below.
If the file is already empty, paste the entire snippet. If it already has content, merge the mcpServers key.
{
"mcpServers": {
"srp-hub-mcp": {
"command": "npx",
"args": ["-y", "srp-hub-mcp"],
"env": {
"HUB_API_TOKEN": "your_token_here",
"HUB_API_BASE": "https://your-hub-api.example.com/v2"
}
}
}
}
Replace
your_token_herewith your realHUB_API_TOKENand updateHUB_API_BASEto point to your Hub API instance.
The-yflag inargstells NPX to skip the install confirmation prompt.
claude_desktop_config.json.Start a new conversation in Claude Desktop and ask:
"What MCP tools do you have available?"
Claude should list post_customer among the available tools. You can then ask it to create a customer and it will use the Hub API through this server.
| Problem | Solution |
|---|---|
npx: command not found |
Re-install Node.js and make sure it is added to PATH |
Cannot find package 'srp-hub-mcp' |
The package must be published to npm (npm publish) or use a local path (see below) |
HUB_API_TOKEN errors |
Double-check the token value in claude_desktop_config.json |
| Tools not appearing | Confirm the JSON is valid (no trailing commas) and restart Claude Desktop |
post_customerCreates a new customer (lead) in the Hub.
| Field | Type | Required | Description |
|---|---|---|---|
codigo |
string | Yes | Unique customer code (max 40 chars) |
tipo |
number | Yes | Person type: 1=Juridical, 2=Physical, 3=Export |
cnpjCpf |
string | Yes | CPF (11 digits) or CNPJ (14 digits), numbers only |
nomeFantasia |
string | Yes | Trade name / display name (max 250 chars) |
status |
number | Yes | 0=Inactive, 1=Active |
Validation rules:
tipo is 2 (Física), cnpjCpf must be a valid 11-digit CPF.tipo is 1 (Jurídica) or 3 (Exportação), cnpjCpf must be a valid 14-digit CNPJ.post_leadCreates a new lead in the Hub via the /leads endpoint.
| Field | Type | Required | Description |
|---|---|---|---|
codigo |
string | Yes | Unique lead code (max 100 chars) |
email |
string | Yes | Valid email address (max 250 chars) |
nomeFantasia |
string | No | Trade name / display name (max 250 chars) |
razaoSocial |
string | No | Legal/company name (max 250 chars) |
telefone |
string | No | Phone number (max 20 chars) |
celular |
string | No | Mobile number (max 20 chars) |
origem |
string | No | Lead source: OUTROS or RD_STATION |
src/
├── index.ts # Entry point, stdio transport setup
├── server.ts # MCP server instance
├── tools/
│ └── customer/
│ ├── handler.ts # post_customer tool registration and logic
│ └── typings.ts # Request/response type definitions
└── utils/
├── constants.ts # Shared constants (status, person types, regex)
└── hub.http.ts # HTTP client for Hub API requests
build/ # Compiled output (generated by npm run build)
# Compile TypeScript
npm run build
# The output binary is at build/index.js
ISC
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"srp-hub-mcp": {
"command": "npx",
"args": []
}
}
}Web content fetching and conversion for efficient LLM usage.
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also