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.
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
- 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
Example: Building a Checkout Integration
Example: Building a Checkout Integration
You: “How do I calculate tax for a checkout using Kintsugi?”AI Assistant (with Kintsugi MCP):
- Understands the
/v1/tax/estimateendpoint - Generates code with correct request format
- Includes proper authentication headers
- Handles response parsing
Example: Debugging API Issues
Example: Debugging API Issues
You: “My tax calculation is failing with a 400 error”AI Assistant (with Kintsugi MCP):
- Tests the same endpoint with your parameters
- Identifies missing required fields
- Suggests fixes based on current API requirements
- Provides corrected code
Example: Understanding Complex Workflows
Example: Understanding Complex Workflows
You: “How do I handle tax-exempt customers in my integration?”AI Assistant (with Kintsugi MCP):
- Explains exemption endpoints
- Shows how to link exemptions to transactions
- Generates code for the complete workflow
- Provides best practices
How It Works
Here’s how Kintsugi MCP helps you build better integrations:1. Developer Asks Question
1. Developer Asks Question
You ask an AI assistant: “How do I call Kintsugi’s tax estimation endpoint?”
2. AI Queries MCP Server
2. AI Queries MCP Server
The AI assistant queries Kintsugi’s MCP server, which provides access to our OpenAPI specification with all endpoint details.
3. AI Understands API Structure
3. AI Understands API Structure
The MCP server gives the AI context about:
- Available endpoints (like
POST /v1/tax/estimate) - Request/response schemas
- Authentication requirements
- Error handling patterns
4. AI Generates Accurate Code
4. AI Generates Accurate Code
Based on the API spec, the AI generates working code:
5. Developer Uses Code
5. Developer Uses Code
You integrate the generated code into your application, customize it for your needs, and start making API calls.
Quick Setup
1
Choose Your Development Environment
Kintsugi MCP works with MCP-compatible AI coding assistants:
- Cursor IDE
- Claude Desktop
- VS Code with MCP Extension
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.
2
Configure MCP Server
Add Kintsugi’s MCP server to your AI assistant configuration:
3
Get Your API Key & Organization ID
You’ll need both an API key and Organization ID for authentication:
- Sign in to app.trykintsugi.com
- Navigate to Settings → API Keys
- Create a new API key
- Store it securely (never commit to version control)
- Find your Organization ID in the lower left-hand corner of the dashboard after logging in
4
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?”
Available API Endpoints
Kintsugi MCP exposes all endpoints from our API Reference - Partners section, giving AI assistants knowledge of:Tax Estimation
POST /v1/tax/estimate - Calculate tax for transactions before committingTransaction Management
POST /v1/transactions, GET /v1/transactions - Create and manage sales transactionsCustomer Management
POST /v1/customers, GET /v1/customers/{id} - Manage customer records and exemptionsNexus & Registrations
GET /v1/nexus, POST /v1/registrations - Determine nexus and manage registrationsProducts & Categories
POST /v1/products, GET /v1/product-categories - Manage product taxabilityFilings & Compliance
GET /v1/filings, POST /v1/filings - Track and manage tax filingsAddress Validation
POST /v1/address_validation/search - Validate addresses for accurate tax calculationOrganization Management
GET /v1/organizations, POST /v1/api-keys - Manage organization settingsReal-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):- Understands the requirement - Needs tax calculation in checkout flow
- Identifies the endpoint -
POST /v1/tax/estimatefrom Kintsugi’s API - Generates code:
- Explains next steps - How to handle the response, error cases, and commit the transaction
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