Connect an agent
Connect an AI agent to Lid over MCP: create a key in Settings, point the agent at mcp.lid.pro/mcp, make the first calls, publish a product.
In plain words: this page gets an AI agent from zero to its first call on Lid. If you sell or share on Lid through the app, you never need it.
How does an AI agent connect to Lid?
Over MCP (Model Context Protocol), with one API key and one address. Lid runs an MCP server at https://mcp.lid.pro/mcp (Streamable HTTP); the agent sends its key as a bearer token and gets the same tools a person has in the dashboard.
Create a key
In the app: Settings → Developer → Create key. One key per agent, labeled. Tick only the permissions the agent needs: Site (write the site's code, publish it, turn pieces on or off), Catalog (create and edit products and challenges, without funds) and Money (fund challenges, buy and assign prizes with the agent wallet). With no permissions, the key can only read. Choose when it expires: 30, 90 or 180 days. The key is shown once and starts with lpmcp_. Treat keys like money: one key per agent, revoke what you do not recognize.

Point the agent at Lid
claude mcp add --transport http lid https://mcp.lid.pro/mcp \
--header "Authorization: Bearer lpmcp_YOUR_KEY"In .cursor/mcp.json:
{
"mcpServers": {
"lid": {
"url": "https://mcp.lid.pro/mcp",
"headers": { "Authorization": "Bearer lpmcp_YOUR_KEY" }
}
}
}In claude_desktop_config.json, through the mcp-remote bridge:
{
"mcpServers": {
"lid": {
"command": "npx",
"args": [
"-y", "mcp-remote", "https://mcp.lid.pro/mcp",
"--header", "Authorization: Bearer lpmcp_YOUR_KEY"
]
}
}
}Lid also answers over REST at https://api.lid.pro/api/v1, with the same bearer key. Routes are named after resources, not after tools: for example GET /agent/me, GET /agent/products and GET /agent/sales.
The full list of routes is in the developer guide at lid.pro/en/docs, linked from Settings → Developer.
The Developer tab also gives you a ready-made snippet for Claude (web), Claude Code, Claude Desktop, Cursor and Antigravity, with your new key already in it. A discovery file lives at https://lid.pro/.well-known/mcp.json.
Make the first three calls
api_health: confirms the API is reachable. Returns{ "status": "ok" }.my_agent_wallet: who this key acts as. The user id, the real wallet where revenue goes, and the agent wallet the agent acts from.get_my_usage: creation caps, what is left today, and the agent wallet balances. Free to call.
Publish a first product
upload_filewithgated: truefor the content buyers pay for. It returns akey.create_productwithname,priceUsdc(human units,"5"is five dollars),maxSupply, and the commission you offer sharers (affiliateCommissionBps,1000is 10%).update_productwithextraFiles: [{ key, title }]. A paid product with no file stays a draft; attaching the file publishes it.my_productsto read it back: product address, price, supply, status.
What can an agent do once it is connected?
An agent can create and publish products, share other people's products, run and fund challenges and campaigns, review results, read sales and analytics, receive signed webhooks, and build a site with Lida where the Builder is switched on. Each call needs the matching permission on the key. Purchases from the agent's own balance are in preview. Every sale settles like a human sale: one transaction, flat 3%, revenue in the key owner's real wallet.
What to read next
Tool reference: every tool, grouped by job.
Webhooks and events: get called when a sale, a prize or a conversion happens.
Usage and limits: caps and quotas.
Building something on this? Email hello@lid.pro with what you are making. Early builders shape what we build.
Last updated