Loyverse Integration for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Loyverse MCP or direct API to track sales, manage inventory, update products, and analyze customer data through natural language.
Loyverse Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Supported Tools

Tools
Create SupplierTool to create a new supplier.
Delete CategoryTool to delete a single category by id.
Delete SupplierTool to delete a specific supplier by id.
Get CategoryTool to get a single category by id.
Get DiscountTool to get a single discount by id.
Get EmployeeTool to get a single employee by id.
Get JWKSTool to fetch json web key set for openid connect.
Get Merchant InfoTool to get merchant information.
Get OpenID Connect Discovery DocumentTool to retrieve the openid connect discovery document.
Get Payment TypeTool to get a single payment type by its id.
Get StoreTool to retrieve details of a specific store by its id.
List CategoriesTool to list categories with optional filtering and pagination.
List CustomersTool to get a list of customers.
List DiscountsTool to list discounts.
List EmployeesTool to get a list of employees.
List ItemsTool to list items with filtering and pagination.
List ModifiersTool to list modifiers.
List Payment TypesTool to list payment types.
List ReceiptsTool to retrieve a list of receipts.
List ShiftsTool to list shifts.
List SuppliersTool to retrieve a list of suppliers.
List TaxesTool to list taxes.
List VariantsTool to list variants.
List WebhooksTool to list webhooks.

Why Use Composio?

AI Native Loyverse Integration

  • Supports both Loyverse MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Loyverse data

Managed Auth

  • Built-in API key management for Loyverse
  • Central place to manage, scope, and revoke Loyverse access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Loyverse
  • Scoped, least privilege access to Loyverse resources
  • Full audit trail of agent actions to support review and compliance

Connect Loyverse MCP Tool with your Agent

Python
TypeScript

Install Composio

python
pip install composio claude-agent-sdk
Install the Composio SDK and Claude Agent SDK

Create Tool Router Session

python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
Initialize the Composio client and create a Tool Router session

Connect to AI Agent

python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Loyverse tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Get merchant information in Loyverse')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
Use the MCP server with your AI agent

Connect Loyverse API Tool with your Agent

Python
TypeScript

Install Composio

python
pip install composio_openai
Install the Composio SDK

Initialize Composio and Create Tool Router Session

python
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
openai = OpenAI()
session = composio.create(user_id='your-user-id')
Import and initialize Composio client, then create a Tool Router session

Execute Loyverse Tools via Tool Router with Your Agent

python
tools = session.tools
response = openai.responses.create(
  model='gpt-4.1',
  tools=tools,
  input=[{
    'role': 'user',
    'content': 'List all suppliers added this month'
  }]
)
result = composio.provider.handle_tool_calls(
  response=response,
  user_id='your-user-id'
)
print(result)
Get tools from Tool Router session and execute Loyverse actions with your Agent

Use Loyverse with any AI Agent Framework

Choose a Framework you want to connect Loyverse with

OpenAI Agents SDK

OpenAI Agents SDK

Use Loyverse MCP with OpenAI Agents SDK

Claude Agents SDK

Claude Agents SDK

Use Loyverse MCP with Claude Agents SDK

Google ADK

Google ADK

Use Loyverse MCP with Google ADK

Langchain

Langchain

Use Loyverse MCP with Langchain

AI SDK

AI SDK

Use Loyverse MCP with AI SDK

Mastra AI

Mastra AI

Use Loyverse MCP with Mastra AI

LlamaIndex

LlamaIndex

Use Loyverse MCP with LlamaIndex

CrewAI

CrewAI

Use Loyverse MCP with CrewAI

Pydantic AI

Pydantic AI

Use Loyverse MCP with Pydantic AI

Autogen

Autogen

Use Loyverse MCP with Autogen

Frequently Asked Questions

Do I need my own developer credentials to use Loyverse with Composio?

Yes, Loyverse requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Used by agents from

Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.