Make any websiteagent-readyin 5 minutes
The open standard that makes any e-commerce site discoverable and transactable by AI agents. Zero server-side code required.
Three layers, five minutes
Each layer is independent. Start with static files and add interactivity as your needs grow.
Add two files to any web server. Zero server-side code, zero dependencies.
# Deploy to any static host .well-known/ocp.json # Manifest ocp.md # Description ocp/products.jsonl # Product feed
- ✓ Works on GitHub Pages, Netlify, S3
- ✓ Crawlable by agent discovery engines
- ✓ No runtime required
Add the OCP runtime to register tools with WebMCP and window.__ocp.
<script src="ocp-runtime.min.js"></script>
<script>
OCP.init({
handlers: { search_products, add_to_cart }
});
</script>- ✓ WebMCP (Chrome 146+) support
- ✓ Graceful fallback via window.__ocp
- ✓ < 8KB gzipped
Translate OCP to any other protocol. Implement once, get compatibility everywhere.
import { createMCPServer } from '@opencommerceprotocol/bridge-mcp';
import { ocpToUCP } from '@opencommerceprotocol/bridge-ucp';
import { ocpToA2ACard } from '@opencommerceprotocol/bridge-a2a';- ✓ MCP (Claude, Cursor, all major AI)
- ✓ UCP (Google Shopping Agent)
- ✓ A2A (Google A2A protocol)
The minimum viable manifest
This is all you need to be discoverable by AI agents.
{
"version": "1.0",
"merchant": {
"name": "My Store",
"url": "https://mystore.com",
"currency": "USD"
},
"capabilities": {
"catalog": true,
"search": true
},
"discovery": {
"feed": "https://mystore.com/ocp/products.jsonl",
"feed_format": "jsonl"
},
"permissions": {
"requires_human_checkout": true
}
}Add /ocp.md and /ocp/products.jsonl and your store is agent-discoverable.
Make any service agent-discoverable
Not just e-commerce. Any API — hotels, knowledge bases, SaaS tools — can declare its tools and become findable by AI agents.
import { agentDiscoveryMiddleware } from '@opencommerceprotocol/agent-discovery';
agentDiscoveryMiddleware(app, {
name: 'Hotel Search API',
verticals: ['travel'],
tools: [
{
name: 'search_hotels',
endpoint: '/api/hotels/search',
method: 'POST',
parameters: {
type: 'object',
properties: {
location: { type: 'string' },
checkin: { type: 'string' },
},
required: ['location'],
},
},
],
auth: { type: 'oauth2' },
bridge: { ocp: '/.well-known/ocp.json' },
});
// Now serves /.well-known/agent.json automaticallyProtocol-neutral tool manifest. One file makes any site agent-discoverable — no MCP server required.
toMCPTools(), toOpenAITools(), toA2ATools(), toOpenAPISpec() — map one manifest to every agent framework.
POST /v1/register to list your service. GET /v1/search with filters or GET /v1/route?intent=... for natural-language routing.
HMAC-SHA256 request signing, domain verification, OAuth2 token helpers, and rate limit parsing built in.
Discover agent tools at any URL
The ocp agent-discover command fetches /.well-known/agent.json, validates the manifest, and exports to any protocol format.
[
{
"name": "search_hotels",
"description": "Search hotels...",
"inputSchema": {
"type": "object",
"properties": {
"location": { "type": "string" }
}
}
}
]One implementation, all protocols
OCP bridges generate compatibility with every major agentic commerce protocol.
| Protocol | By | Use case | OCP support |
|---|---|---|---|
| OCP | Open Source | Discovery + interaction (this!) | ✓Native |
| MCP | Anthropic | AI tool calling (Claude, Cursor) | ✓@opencommerceprotocol/bridge-mcp |
| UCP | Universal checkout | ✓@opencommerceprotocol/bridge-ucp | |
| A2A | Agent-to-agent communication | ✓@opencommerceprotocol/bridge-a2a | |
| ACP | OpenAI | Agent commerce protocol | ✓@opencommerceprotocol/bridge-acp |
| WebMCP | W3C/Chrome | Browser-native agent APIs | ✓Built into runtime |
Works with every platform
Turnkey adapters for the 60%+ of e-commerce that's not Shopify.
Ready to make your store agent-ready?
Start with two static files. Add interactivity when you need it.