SWIRLS_
Reference

MCP Server

Use the Swirls MCP server to orchestrate workflows through LLMs like Claude.

The Swirls MCP (Model Context Protocol) server exposes Swirls as an HTTP MCP service. Connect Claude Desktop, Claude Code, or any MCP client that supports the Streamable HTTP transport to build, manage, and execute graphs using natural language.

Overview

  • Hosted service: Use Swirls’ MCP endpoint with your API key—no install required.
  • Authentication: Your API key is passed in the request URL (query or path).

Authentication

The MCP server authenticates using a Swirls API key. Session JWTs are not used for the HTTP service.

Creating an API Key

  1. Log in to the Swirls web app
  2. Open your profile → API Keys
  3. Click Create API Key
  4. Name it (e.g. “Claude Desktop MCP”)
  5. Copy the secret immediately—it’s only shown once.

API keys look like ak_... and don’t expire unless you set an expiration.

Using the Hosted Service

Swirls runs an MCP HTTP server at https://swirls.ai/mcp. Include your API key in the URL when configuring your client.

Passing the API Key

The server accepts the API key as a query parameter:

  1. Query parameter (recommended):
    https://swirls.ai/mcp?apiKey=ak_your_secret_here

Use the same base URL for both the initial connection and any session/SSE URLs the client follows. The client must send the Mcp-Session-Id header on subsequent requests when the server returns one.

Claude Desktop

If your Claude Desktop build supports MCP over HTTP, add the Swirls server by URL:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "swirls": {
      "type": "http",
      "url": "https://swirls.ai/mcp?apiKey=ak_your_api_key_here",
      "headers": {}
    }
  }
}

Replace ak_your_api_key_here with your actual API key. Do not commit this file or share it.

Other MCP Clients

For Cursor, IDEs, or other tools that support an HTTP MCP endpoint:

  • Endpoint: https://swirls.ai/mcp
  • Authentication: Add ?apiKey=ak_your_api_key_here to the URL, or use the path form above.

Refer to your client’s docs for where to paste the full URL (including the API key).

Available Tools

The MCP server exposes 60+ tools for workflow orchestration:

Project Management

ToolDescription
list_projectsList all accessible projects
get_projectGet project details
create_projectCreate a new project

Graph Management

ToolDescription
list_graphsList graphs in a project
get_graphGet a graph with all nodes and edges
create_graphCreate a new workflow graph
update_graphUpdate a graph
delete_graphDelete a graph
sync_graphSync complete graph structure in one operation

Node Management

ToolDescription
create_nodeCreate a node in a graph
update_nodeUpdate a node
delete_nodeDelete a node

Supported node types: ai, http, code, switch, document, email, graph, scrape, stream, wait, bucket.

Edge Management

ToolDescription
create_edgeConnect two nodes
delete_edgeRemove a connection

Execution

ToolDescription
execute_graphExecute a graph with input data
get_executionGet execution status and results
list_executionsList executions for a graph

Triggers, Forms, Webhooks & Schedules

ToolDescription
list_triggers / create_trigger / update_trigger / delete_trigger / execute_triggersTriggers connecting resources to graphs
list_forms / create_form / get_form / update_form / delete_formForms
list_webhooks / create_webhook / get_webhook / update_webhook / delete_webhookWebhooks
list_schedules / create_schedule / get_schedule / update_schedule / delete_scheduleCron schedules

Other Resources

ToolDescription
list_schemas / create_schema / get_schema / update_schema / delete_schemaJSON Schema management
list_documents / create_document / get_document / update_document / delete_documentDocument management
list_streams / create_stream / get_stream / update_stream / delete_stream / query_streamStream data
list_agents / create_agent / get_agent / update_agent / delete_agentAI agents
list_reviews / get_review / approve_review / reject_reviewHuman-in-the-loop reviews
list_folders / create_folder / update_folder / delete_folderFolder organization
create_api_key / list_api_keys / revoke_api_keyAPI key management

Example: Building a Workflow with Claude

You: Create a workflow that takes a topic, generates a blog post about it, and emails it to me.

Claude: I'll create that workflow for you. Let me:

  1. List your projects: list_projects
  2. Create a new graph: create_graph(projectId: "...", name: "Blog Generator")
  3. Sync the workflow with an LLM node and an email node: sync_graph(graphId: "...", nodes: [...], edges: [...])
  4. Create a form trigger: create_form(...), create_trigger(...)

Your workflow is ready. Submit topics through the form or run the graph directly.

Troubleshooting

"Missing apiKey parameter" or 401

  • Ensure the MCP URL includes the API key: ?apiKey=ak_... or /apiKey=ak_....
  • Check for typos, extra spaces, or missing characters in the key.

"Invalid API key"

Your API key may be:

  • Revoked — Create a new one in the web app.
  • Expired — If you set an expiration, create a new key.
  • Malformed — Copy the full key again (starts with ak_).

"Authentication required"

The key in the URL is invalid or not accepted. Try creating a new API key in the Swirls web app and updating the URL.

MCP server not appearing in Claude / client

  1. Confirm your client supports MCP over HTTP (Streamable HTTP transport). Some clients only support STDIO.
  2. Use the full URL including the API key in the client’s MCP/server configuration.
  3. Restart the client after changing the config.
  4. For Claude Desktop, fully quit the app (e.g. Cmd+Q / Quit from tray) so config changes load.

On this page