Connect Cursor, Claude Desktop, and OpenAI Agents to your live WooCommerce catalogue via MCP. You get the same unified data layer as search and recommendations, with grounded retrieval instead of guesswork.
Real recording of the live agent demo on this page. Run it yourself below.
This is not a video. Your browser sends real MCP tool calls to the live API, the agent searches the demo shop catalogue, asks the shop assistant, and drafts a ready-to-send marketing email. Every request and every argument is shown verbatim.
search_products
3 chat_with_shop
4 Email draft
The demo runs on the demo shop catalogue. Your agents call the same tools on your own products.
Wire your catalogue into Claude, OpenAI, and automations via AskAgento MCP. It uses the same unified data layer that powers search and recommendations.
Agent tools pull relevant products from your synced catalogue instead of stuffing the whole inventory into every LLM turn.
Six runnable merchant scenarios cover marketing, sales, support, merchandising, social, and catalogue audits.
Add your Site ID and API key from WordPress, point your client at https://api.askagento.com/v1/mcp, and go from brief to action output.
AskAgento exposes a remote MCP endpoint over HTTPS at https://api.askagento.com/v1/mcp. Pick your client below.
| Value | Header |
|---|---|
Site ID |
X-Askagento-Site-Id: <site-id> |
API key |
X-Askagento-Api-Key: <api-key> |
X-Askagento-Site-Id identifies your shop and X-Askagento-Api-Key is your install secret. Send both on every request.
| Tool | Purpose |
|---|---|
chat_with_shop | Conversational shop assistant with product context |
get_catalogue_stats | Orientation summary: product count, price range, category/tag counts, featured and on-sale totals |
get_featured_products | Featured products, sale items, or new arrivals (list_type: featured | on_sale | new_arrivals) |
get_product_by_id | Full details for one product by its WooCommerce product_id |
get_shop_status | Install status, plan, and usage quotas |
get_similar_products | Cross-sell or upsell for one product_id |
list_categories | All product categories with name, slug, and product count |
list_tags | All product tags with name, slug, and product count |
search_products | Semantic search by text, image, or both |
Add to ~/.cursor/mcp.json (or your Windsurf MCP config), then reload the IDE.
{
"mcpServers": {
"askagento-shop": {
"url": "https://api.askagento.com/v1/mcp",
"headers": {
"X-Askagento-Site-Id": "<your-site-id>",
"X-Askagento-Api-Key": "<your-api-key>"
}
}
}
}
Agent prompt templates for marketing, sales, support, and more live in the demo repo prompts/ folder.
AskAgento is a remote HTTP MCP server. Claude support for native type: "http" varies by version. Try Option A first, then Option B if the app fails to start.
claude_desktop_config.json:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.jsonmcpServers:{
"mcpServers": {
"askagento-shop": {
"type": "http",
"url": "https://api.askagento.com/v1/mcp",
"headers": {
"X-Askagento-Site-Id": "<your-site-id>",
"X-Askagento-Api-Key": "<your-api-key>"
}
}
}
}
askagento-shop lists all ten tools.mcp-remote bridge (fallback)If native HTTP crashes Claude or drops the server on launch, proxy through mcp-remote:
{
"mcpServers": {
"askagento-shop": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.askagento.com/v1/mcp",
"--header",
"X-Askagento-Site-Id: <your-site-id>",
"--header",
"X-Askagento-Api-Key: <your-api-key>"
]
}
}
}
Try it: "Use search_products to find three watches under $350, then get_similar_products for the top hit, then chat_with_shop to write a 2-sentence email subject and opener. Only use products returned by the tools."
Use the OpenAI Agents SDK with your catalogue via hosted MCP or a direct Streamable HTTP connection. Runnable samples ship in the demo repo.
export OPENAI_API_KEY="sk-..."
export ASKAGENTO_SITE_ID="aa-your-site-id"
export ASKAGENTO_API_KEY="your-install-api-key"
OpenAI's API calls your MCP server remotely. This is the most compatible path for AskAgento's JSON-RPC over HTTP.
cd examples/openai
npm install
npm run hosted
import { Agent, hostedMcpTool, run } from '@openai/agents';
const siteId = process.env.ASKAGENTO_SITE_ID;
const apiKey = process.env.ASKAGENTO_API_KEY;
const agent = new Agent({
name: 'Askagento Shop Assistant',
instructions: 'Use Askagento MCP tools for catalogue questions. Do not invent SKUs.',
tools: [
hostedMcpTool({
serverLabel: 'askagento-shop',
serverUrl: 'https://api.askagento.com/v1/mcp',
headers: {
'X-Askagento-Site-Id': siteId,
'X-Askagento-Api-Key': apiKey,
},
}),
],
});
const result = await run(
agent,
'Search for elegant watches under $300 and summarize the top 3 with links.',
);
console.log(result.finalOutput);
Docs: OpenAI Agents SDK: Hosted MCP tools
cd examples/openai
npm install
npm run streamable
import { Agent, MCPServerStreamableHttp, run } from '@openai/agents';
const siteId = process.env.ASKAGENTO_SITE_ID;
const apiKey = process.env.ASKAGENTO_API_KEY;
const mcpServer = new MCPServerStreamableHttp({
url: 'https://api.askagento.com/v1/mcp',
name: 'Askagento Shop',
requestInit: {
headers: {
'X-Askagento-Site-Id': siteId,
'X-Askagento-Api-Key': apiKey,
},
},
timeout: 60000,
});
await mcpServer.connect();
const agent = new Agent({
name: 'Askagento Shop Assistant',
instructions: 'Use MCP tools for all product questions.',
mcpServers: [mcpServer],
});
try {
const result = await run(agent, 'What silver watches do we have under $400?');
console.log(result.finalOutput);
} finally {
await mcpServer.close();
}
If connection fails with transport errors, use Option 1 (Hosted MCP) instead.
cd examples/openai
python3 -m venv .venv && source .venv/bin/activate
pip install openai-agents
python askagento_streamable.py
Run this one-liner to confirm your credentials and that the MCP endpoint responds correctly.
SITE_ID="aa-your-site-id"
API_KEY="your-install-api-key"
curl -sS -X POST "https://api.askagento.com/v1/mcp" \
-H "Content-Type: application/json" \
-H "X-Askagento-Site-Id: ${SITE_ID}" \
-H "X-Askagento-Api-Key: ${API_KEY}" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}'
Expected: JSON with "serverInfo":{"name":"Askagento Shop Search",...} and "protocolVersion":"2024-11-05".
| Symptom | Fix |
|---|---|
-32001 unauthorized | Check the X-Askagento-Site-Id and X-Askagento-Api-Key headers |
-32004 site not found | Finish plugin install / sync; confirm Site ID in WP admin |
| Claude crashes on startup | Remove native HTTP entry; use mcp-remote bridge |
| OpenAI transport / connect error | Try hosted MCP (hostedMcpTool) instead of Streamable HTTP |
429 on chat_with_shop | Token quota exhausted. Call get_shop_status or upgrade plan. |
| Tools not visible in Claude | Restart app; check JSON syntax; review Claude logs |
Full walkthrough and merchant scenarios: connect-claude-openai.md Β· API reference: API docs
Pro includes full chatbot, Agents & MCP tools, and AI image search.
14-day free trial on Pro Β· Cancel anytime