loading…
Search for a command to run...
loading…
Generate Pix QR codes and copy-paste strings with fallback across multiple providers (Efí, Cielo, etc.) for Brazilian instant payments.
Generate Pix QR codes and copy-paste strings with fallback across multiple providers (Efí, Cielo, etc.) for Brazilian instant payments.
A lightweight Model Context Protocol (MCP) server that enables AI agents (Claude, Cursor, Windsurf) to generate static Pix QR codes via natural-language prompts.
generateStaticPix - Generate static Pix QR codes for any Pix key (no API required)# Install globally
npm install -g pix-mcp
# Run in MCP mode (for Claude Desktop)
pix-mcp
# Run in HTTP mode (for web services)
MCP_MODE=http pix-mcp
# Start in MCP mode for Claude Desktop integration
pix-mcp
# Start in HTTP mode on port 3000
MCP_MODE=http pix-mcp
curl -X POST http://localhost:3000/tools/call \
-H "Content-Type: application/json" \
-d '{
"name": "generateStaticPix",
"arguments": {
"pixKey": "10891990909",
"amount": 100.50,
"recipientName": "Franco Camelo Aguzzi",
"recipientCity": "Florianopolis"
}
}'
const result = await mcpClient.callTool('generateStaticPix', {
pixKey: '10891990909',
amount: 100.5,
recipientName: 'Franco Camelo Aguzzi',
recipientCity: 'Florianopolis',
});
⚠️ Important: After deploying to Railway, add these environment variables in the Railway dashboard:
MCP_MODE=httpNODE_ENV=production (optional)# Clone the repository
git clone https://github.com/Regenerating-World/pix-mcp.git
cd pix-mcp
# Install dependencies
npm install
# Build the project
npm run build
# Start the server in HTTP mode
MCP_MODE=http NODE_ENV=production node dist/index.js
MIT
MCP_MODE: Server mode (stdio for MCP, http for HTTP API) - Default: stdioNODE_ENV: Environment (development/production) - Default: developmentPORT: HTTP port when in HTTP mode - Default: 3000npm install -g pix-mcp
~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%/Claude/claude_desktop_config.json on Windows):{
"mcpServers": {
"pix-mcp": {
"command": "npx",
"args": ["pix-mcp"],
"env": {
"MCP_MODE": "stdio"
}
}
}
}
Create a Pix charge for R$25.50 to Maria Silva for lunch
Add to your Cursor MCP settings:
{
"mcpServers": {
"pix-mcp": {
"command": "pix-mcp"
}
}
}
Configure in Windsurf MCP settings:
{
"pix-mcp": {
"command": "npx pix-mcp",
"args": []
}
}
Your tool should support MCP servers. Configure using:
npx pix-mcp or pix-mcp (if installed globally)MCP_MODE=stdiogenerateStaticPixCreates a static Pix payment QR code following BACEN EMV 4.0 standards.
Parameters:
pixKey (string): Valid Pix key (email, phone, CPF, CNPJ, or random key)amount (number): Payment amount in BRL (0.01 to 999,999.99)recipientName (string): Name of the payment recipient (max 25 chars)recipientCity (string): City of the payment recipient (max 15 chars)Returns:
Supported Pix Key Types:
[email protected]+551199999999912345678901 (11 digits)12345678000195 (14 digits)123e4567-e89b-12d3-a456-426614174000 (UUID format)# Development mode with hot reload
npm run dev
# Run tests
npm test
# Build for production
npm run build
# Lint code
npm run lint
# Format code
npm run format
generateStaticPix tool12345678900 - they will be rejected by banksMIT License - see LICENSE file for details.
Made with ❤️ for the Brazilian Pix ecosystem
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"regenerating-world-pix-mcp": {
"command": "npx",
"args": []
}
}
}