Skip to main content

Pay for MCP tools with Laissez

Use LaissezMCPConnector to connect your agents to paid MCP servers. All payments are settled with x402 and visible in your Laissez dashboard.

1) Install

uv add laissez

2) Connect your agent

from pydantic_ai import Agent
from laissez.mcp import LaissezMCPConnector

server = LaissezMCPConnector(url="https://dice-roll.laissez.xyz/mcp")

agent = Agent(
    model="openai:gpt-5-mini",
    instructions="Show your working out",
    toolsets=[server],
)

result = await agent.run("Roll a dice twice then multiply")
print(result.output)

3) Get your API key

4) Next steps