KintsugiKintsugi
Model Context Protocol (MCP)

Getting Started with Kintsugi MCP

What is MCP? Model Context Protocol (MCP) enables AI coding assistants like Claude in Cursor IDE to understand and use external APIs. Kintsugi's MCP server gives AI assistants direct access to our API documentation, making it easier for developers to build integrations with accurate, up-to-date code examples.

Kintsugi's Model Context Protocol (MCP) integration transforms how developers build with our tax compliance API. Instead of manually reading documentation and writing API calls, AI assistants can understand Kintsugi's endpoints, generate accurate code, debug issues, and provide context-aware help, all while you code.

Why Use Kintsugi MCP?

Building integrations with Kintsugi's API typically requires:

  • Reading extensive API documentation
  • Understanding request/response formats
  • Handling authentication correctly
  • Debugging API errors
  • Writing boilerplate code

With MCP-enabled AI assistants, you get:

  • Accurate Code Generation - AI understands Kintsugi's actual API endpoints and generates working code
  • Real-Time Documentation - AI assistants access up-to-date API specs, not outdated docs
  • Context-Aware Help - Get suggestions based on your actual code and integration needs
  • Faster Development - Reduce time spent on API integration from hours to minutes

How It Works

Here's how Kintsugi MCP helps you build better integrations:

01You ask a questionYour side
“How do I calculate tax for a checkout using Kintsugi?”
02Your assistant queries over MCPAI assistant
Cursor, Claude Desktop, or VS Code with an MCP extension.
03The Kintsugi MCP server reads the specKintsugi
docs.trykintsugi.com/mcpround trip
Requests openapi.json — the live spec, never a stale copy of the docs
Returns endpoints, request and response schemas, and auth requirements
Repeats whenever the assistant needs more of the spec
04It writes code against the real APIAI assistant
POST https://api.trykintsugi.com/v1/tax/estimate
x-api-key: your-api-key
x-organization-id: your-org-id
{ "amount": 100.00, "shipping_address": { … } }
05Your integration calls the APIYour side
api.trykintsugi.comruntime
Sends the cart total and shipping address over HTTPS with your keys
Returns the tax amount and the jurisdiction breakdown
06Integration completeYour side
Working tax calculation in minutes, not an afternoon of reading docs.
The MCP server explains the API; you still need valid credentials to call it.

Quick Setup

Choose Your Development Environment

Kintsugi MCP works with MCP-compatible AI coding assistants:

Cursor's AI assistant can use MCP servers, making it perfect for developers building Kintsugi integrations. The AI understands your codebase and Kintsugi's API simultaneously.

Configure MCP Server

Add Kintsugi's MCP server to your AI assistant configuration:

{
  "mcpServers": {
    "kintsugi": {
      "url": "https://docs.trykintsugi.com/mcp",
      "headers": {
        "X-API-KEY": "your-api-key",
        "X-ORGANIZATION-ID": "your-org-id"
      }
    }
  }
}
Get Your API Key & Organization ID

You'll need both an API key and Organization ID for authentication:

  1. Sign in to app.trykintsugi.com
  2. From the sidebar (bottom-left), open ConfigurationAPI Keys
  3. Create a new API key
  4. Store it securely (never commit to version control)
  5. Find your Organization ID in the lower left-hand corner of the dashboard after logging in

Paste both into the headers block of the config above. The server reads your key from the connection headers, so a config with only a url lists the tools but cannot call them.

Start Building

Once configured, your AI assistant understands Kintsugi's API. Try asking:

  • "Show me how to estimate tax for a transaction"
  • "Generate code to create a customer in Kintsugi"
  • "How do I handle address validation?"
  • "What's the request format for creating a registration?"

What the tools can do

Each tool maps to one Customer API operation and is named after its reference page, so create-transaction the tool and /reference/create-transaction the page are always the same operation.

The tools do not only describe the API, they call it, with the key from your connection headers. That means 17 of the 41 change your data: creating a transaction or a credit note, updating a customer, deregistering a registration, deleting a physical nexus.

The other 24 only read. That includes three that are POST requests but commit nothing, because they take a request body rather than because they save anything: estimate-tax, search and suggestions.

Every tool that writes is marked read-only-false in its MCP annotations, and destructive deletes are marked as such, so a well-behaved client asks you before running one. Not every client surfaces those prompts, so treat the key you configure here as one an AI assistant can act with on your behalf.

Kintsugi API keys are not scoped: a key grants the access its organization has, and there is no read-only variant to hand out instead. So if you want to try the tools against data you do not mind changing, use a key from a test organization rather than your production one, and revoke it when you are done.

Read-only operations (anything beginning get-) only fetch. Kintsugi validates every call against the published schema before it reaches the API, and any error the API returns is passed back to you unchanged.

Available API Endpoints

Kintsugi MCP on the public docs site exposes endpoints from the public API Reference only (the Customer API). Partner APIs are not included.

Tax Estimation

POST /v1/tax/estimate - Calculate tax for transactions before committing

Transaction Management

POST /v1/transactions, GET /v1/transactions - Create and manage sales transactions

Customer Management

POST /v1/customers, GET /v1/customers/{customer_id} - Manage customer records

Nexus & Registrations

GET /v1/nexus, POST /v1/registrations - Determine nexus and manage registrations

Products & Categories

POST /v1/products, GET /v1/products/categories - Manage product taxability

Filings & Compliance

GET /v1/filings - Track and manage tax filings

Address Validation

POST /v1/address_validation/search - Validate addresses for accurate tax calculation

Exemptions

POST /v1/exemptions, GET /v1/exemptions - Manage tax exemption certificates

Real-World Example

Here's a complete example of building a checkout integration with MCP:

Developer: "I need to add tax calculation to my e-commerce checkout. How do I integrate with Kintsugi?"

AI Assistant (with Kintsugi MCP):

  1. Understands the requirement - Needs tax calculation in checkout flow
  2. Identifies the endpoint - POST /v1/tax/estimate from Kintsugi's API
  3. Generates code:
    import requests
    
    def calculate_tax(cart_total, shipping_address, api_key, organization_id):
        response = requests.post(
            'https://api.trykintsugi.com/v1/tax/estimate',
            headers={
                'x-api-key': api_key,
                'x-organization-id': organization_id,
                'Content-Type': 'application/json'
            },
            json={
                'amount': cart_total,
                'shipping_address': {
                    'street_1': shipping_address['street'],
                    'city': shipping_address['city'],
                    'state': shipping_address['state'],
                    'zip': shipping_address['zip']
                }
            }
        )
        response.raise_for_status()
        return response.json()
  4. Explains next steps - How to handle the response, error cases, and commit the transaction

Result: Developer has working code in minutes instead of hours of API documentation reading.

Benefits for Developers

Faster Integration

Reduce integration time from days to hours with AI-generated code

Fewer Errors

AI understands API schemas and generates correct request formats

Always Up-to-Date

MCP provides current API specs, not outdated documentation

Better Debugging

AI can test endpoints and identify issues faster than manual debugging

Next Steps

Authentication Required - While the MCP server helps AI assistants understand Kintsugi's API, you'll still need valid API credentials to make actual API calls.

Kintsugi uses API key authentication via headers (not bearer token). Every request requires:

  • x-api-key header with your API key
  • x-organization-id header with your organization ID

Generate API keys in your Kintsugi dashboard. Your Organization ID can be found in the lower left-hand corner after logging in.