sales
Avalara MCP Integration for LangChain
Connect Avalara to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Avalara to LangChain
Bridge LangChain agents to local KosmoKrator integration tools through MCP or headless CLI calls.
Use the MCP gateway when the agent should discover tools, or wrap kosmo integrations:call for fixed chains. The gateway is local, scoped to this integration, and starts with
--write=deny so LangChain can inspect read-capable tools without receiving write access by default.
Avalara MCP Config for LangChain
Keep the gateway scoped to the integration and operation class needed by the chain.
{
"mcpServers": {
"kosmokrator-avalara": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=avalara",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=avalara --write=deny Why Use KosmoKrator Here
Expose only Avalara instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Avalara Tools Visible to LangChain
LangChain sees stable MCP tool names generated from the Avalara integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__avalara__avalara_list_transactions | avalara.avalara_list_transactions | Read | List transactions from Avalara. Supports filtering by date, status, and other criteria with pagination. |
integration__avalara__avalara_get_transaction | avalara.avalara_get_transaction | Read | Retrieve details of a single transaction in Avalara by its ID. |
integration__avalara__avalara_create_transaction | avalara.avalara_create_transaction | Write | Create a new transaction (sales order or invoice) in Avalara for tax calculation. Requires company code, transaction type, date, and line items. |
integration__avalara__avalara_list_companies | avalara.avalara_list_companies | Read | List companies configured in your Avalara account. Supports filtering and pagination. |
integration__avalara__avalara_get_company | avalara.avalara_get_company | Read | Retrieve details of a single company configured in Avalara by its ID. |
integration__avalara__avalara_list_tax_codes | avalara.avalara_list_tax_codes | Read | List tax codes available in Avalara. Tax codes classify products and services for tax purposes. Supports filtering and pagination. |
integration__avalara__avalara_get_current_user | avalara.avalara_get_current_user | Read | Retrieve the current authenticated Avalara user information. |