FacturAPI — Mexican CFDI e-invoicing
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add facturapi --env FACTURAPI_API_KEY='<FACTURAPI_API_KEY>' -- npx -y @codespar/mcp-facturapi~/.codex/config.toml
[mcp_servers.facturapi]
command = "npx"
args = ["-y", "@codespar/mcp-facturapi"]
env = { FACTURAPI_API_KEY = "<FACTURAPI_API_KEY>" }
# codex mcp add facturapi --env FACTURAPI_API_KEY='<FACTURAPI_API_KEY>' -- npx -y @codespar/mcp-facturapi~/.cursor/mcp.json
{
"mcpServers": {
"facturapi": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-facturapi"
],
"env": {
"FACTURAPI_API_KEY": "<FACTURAPI_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"facturapi": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@codespar/mcp-facturapi"
],
"env": {
"FACTURAPI_API_KEY": "<FACTURAPI_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"facturapi": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-facturapi"
],
"env": {
"FACTURAPI_API_KEY": "<FACTURAPI_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"facturapi": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-facturapi"
],
"env": {
"FACTURAPI_API_KEY": "<FACTURAPI_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"facturapi": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-facturapi"
],
"env": {
"FACTURAPI_API_KEY": "<FACTURAPI_API_KEY>"
}
}
}
}Environment variables
FACTURAPI_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.