{"product_id":"n8n-mcp-server-manage-workflows-executions-via-public-api","title":"n8n MCP Server: Manage Workflows \u0026 Executions via Public API","description":"\u003ch3\u003eManage your n8n Workflows \u0026amp; Executions from an MCP client—via Public API\u003c\/h3\u003e\n\u003cp\u003eThis \u003cstrong\u003en8n MCP Server\u003c\/strong\u003e workflow exposes an MCP server webhook that lets you control an n8n instance programmatically: search, read, create, update, activate\/deactivate, delete, and rerun workflows—directly through an \u003cstrong\u003eMCP (Model Context Protocol) client\u003c\/strong\u003e using the \u003cstrong\u003en8n Public API\u003c\/strong\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eExposes an MCP server endpoint\u003c\/strong\u003e: receives MCP tool calls and routes each request into the workflow with an \u003ccode\u003eoperation\u003c\/code\u003e and \u003ccode\u003epayload\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNormalizes and parses payload data\u003c\/strong\u003e: the payload is normalized and JSON-parsed, including handling nested JSON-string fields.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLogs request metadata for searchability\u003c\/strong\u003e: saves metadata about operations into \u003cem\u003eexecution custom data\u003c\/em\u003e so actions can be found in execution history.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePerforms the requested operation via n8n Public API\u003c\/strong\u003e:\n    \u003cul\u003e\n      \u003cli\u003eLists workflows\u003c\/li\u003e\n      \u003cli\u003eSearches workflows by name\u003c\/li\u003e\n      \u003cli\u003eFetches workflow details or a specific node\u003c\/li\u003e\n      \u003cli\u003eLists or fetches executions (including node input\/output from an execution)\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSupports write operations\u003c\/strong\u003e: creates\/updates workflows, adds\/updates\/removes nodes, activates\/deactivates workflows, deletes workflows, and \u003cstrong\u003ereruns\u003c\/strong\u003e a workflow by retrying an execution with \u003ccode\u003eloadWorkflow=true\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReturns structured responses\u003c\/strong\u003e: sends success\/error output back to the MCP client, and stops with an explicit error for unsupported operations.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eBuild an AI agent or MCP-enabled app that can \u003cstrong\u003esearch and retrieve workflow runs\u003c\/strong\u003e (including node I\/O) for debugging.\u003c\/li\u003e\n  \u003cli\u003eEnable SaaS operators to \u003cstrong\u003eactivate\/deactivate workflows\u003c\/strong\u003e and rerun executions on demand through a public API-driven control layer.\u003c\/li\u003e\n  \u003cli\u003eAutomate workflow lifecycle management: \u003cstrong\u003ecreate, update, or modify nodes\u003c\/strong\u003e in n8n from an external MCP client.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n Public API integration\u003c\/strong\u003e using your \u003ccode\u003ehost\u003c\/code\u003e (no trailing slash) and \u003ccode\u003eapi_key\u003c\/code\u003e from Settings → n8n API.\u003c\/li\u003e\n  \u003cli\u003eWorkflow uses nodes such as \u003cstrong\u003eHTTP Request\u003c\/strong\u003e, \u003cstrong\u003eSet\u003c\/strong\u003e, \u003cstrong\u003eCode\u003c\/strong\u003e, \u003cstrong\u003eSwitch\u003c\/strong\u003e, \u003cstrong\u003eSplit Out\u003c\/strong\u003e, plus a \u003cstrong\u003eSticky Note\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eSetup: configure \u003ccode\u003ehost\u003c\/code\u003e and \u003ccode\u003eapi_key\u003c\/code\u003e, activate the workflow, then copy the MCP webhook URL.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45814418702515,"sku":"N8N-18003","price":27.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/V2kZSuEnOH49ABO_LiFps_dFgNkLhn.png?v=1786439445","url":"https:\/\/buyflowscripts.com\/products\/n8n-mcp-server-manage-workflows-executions-via-public-api","provider":"N8N Commerce","version":"1.0","type":"link"}