Connection Options
The GOBL MCP server is available in two ways:Hosted (Streamable HTTP)
Connect to the hosted server at:Local (Stdio)
If you have the GOBL CLI installed, launch a local MCP server over stdio:Configuration
Claude Desktop
Add the following to your Claude Desktop configuration (claude_desktop_config.json):
Claude Code
Add the GOBL MCP server to your project or user settings:Cursor
Add to your Cursor MCP settings (.cursor/mcp.json):
Tools
The MCP server exposes 9 tools for working with GOBL documents and reference data.Document Operations
build
build
Calculate and validate a GOBL document. Provide partial or complete JSON and get back a fully calculated document with totals, tax calculations, and validation.Parameters:
validate
validate
Validate a GOBL document without modifying it. Returns OK or structured validation errors with faults.Parameters:
correct
correct
Create corrective documents (credit notes, debit notes) from an existing invoice. Can also return the available correction options schema for a given document.Parameters:
replicate
replicate
Clone a GOBL document as a new template with a fresh UUID. Clears stamps and signatures from the original.Parameters:
Reference Data
schema
schema
Look up the JSON Schema definition for any GOBL type.Parameters:
regime
regime
Get the full tax regime definition for a country. Returns tax categories, rates, extensions, scenarios, and correction definitions.Parameters:
regime_list
regime_list
List all available tax regimes with their country codes, names, and currencies. No parameters required.
addon
addon
Get the full addon definition for a given key. Returns extensions, scenarios, and validation rules that the addon applies.Parameters:
addon_list
addon_list
List all available addons with their keys, names, descriptions, and dependencies. No parameters required.
Resources
The server also exposes MCP resources for browsing reference data:Example Conversation
Here’s an example of what you can do with the GOBL MCP server connected to an AI assistant:You: Create a Spanish invoice from Seller SL (B85905495) to Buyer SL (B85905495) for consulting services at 1000 EUR with standard VAT, using Verifactu.The assistant will:
- Call
regimewith codeESto look up Spanish tax rules - Call
addonwith keyes-verifactu-v1to check Verifactu requirements - Call
buildwith the assembled invoice JSON to calculate totals and validate - Return the complete, calculated invoice ready for processing