API Overview & MCP Integration
Connect applications, automations, and AI agents using EdgeOrigin REST APIs and Model Context Protocol (MCP).
API Overview & MCP Integration
Connect AI coding tools and automation scripts to EdgeOrigin using REST APIs and the Model Context Protocol.
Model Context Protocol (MCP)
EdgeOrigin provides first-class support for the Model Context Protocol (MCP). You can connect AI coding agents (Claude Desktop, Cursor, Windsurf, Gemini) to your website workspace using standard JSON-RPC 2.0 tools.
Supported MCP Tools
site.get_context: Retrieve site metadata, active theme, plugins, and statistics.page.list&page.get: Inspect published and draft pages.page.create&page.update: Create or modify pages programmatically.theme.list&theme.get: Inspect theme contracts and design tokens.template.list&template.update: Manage block-tree header, footer, and page templates.publish.site: Compile and publish site changes to the global edge network.publish.purge_targeted_cache: Instantly purge edge CDN caches for specific paths.
Connecting Claude Desktop / Cursor
Add the EdgeOrigin MCP server to your configuration file:
JSON
claude_desktop_config.json
{
"mcpServers": {
"edgeorigin": {
"url": "https://edgeorigin.app/mcp",
"headers": {
"Authorization": "Bearer YOUR_SITE_SCOPED_TOKEN"
}
}
}
}
