DocsMCPLamatic MCP

Lamatic MCP

Build, deploy, run and debug your Lamatic flows from any AI assistant.

Lamatic MCP (formerly Graph MCP) is a hosted Model Context Protocol server at https://mcp.lamatic.ai/mcp. Connect Claude, Cursor, VS Code or any other MCP client and your assistant can list your projects, create and edit flows, deploy them, run them, read logs, and work with your D1 database and VectorDB collections.

There is nothing to install and no API key to copy. You sign in with your Lamatic account in the browser (OAuth 2.1 with PKCE), and the client keeps its own short-lived tokens that refresh automatically.

⚠️

Using @lamatic/graph-mcp or @lamatic/dev-mcp from npm? Those packages, and the graph_auth_login / dev_auth_login tools that took an org API key (lt-org-…) and project API key (lt-mmup-…), are deprecated. Remove them from your MCP config and connect to https://mcp.lamatic.ai/mcp instead.


Connect

Claude Code

claude mcp add --transport http lamatic https://mcp.lamatic.ai/mcp

Then run /mcp, pick lamatic, and choose Authenticate.

Claude (claude.ai and Claude Desktop)

Go to Settings → Connectors → Add custom connector and enter https://mcp.lamatic.ai/mcp. Claude asks you to sign in the first time you use it.

Cursor

Use the Add to Cursor button above, or add this to your MCP config file:

{
  "mcpServers": {
    "lamatic": {
      "url": "https://mcp.lamatic.ai/mcp"
    }
  }
}

VS Code

Use the Add to VS Code button above, or add this to .vscode/mcp.json:

{
  "servers": {
    "lamatic": {
      "type": "http",
      "url": "https://mcp.lamatic.ai/mcp"
    }
  }
}

Other clients

Any client that supports remote (Streamable HTTP) MCP servers with OAuth works. Add https://mcp.lamatic.ai/mcp as the server URL.


Signing in and permissions

The first time your client connects, it opens a Lamatic sign-in page in your browser. There you choose:

  • The organization this connection works in. One connection reaches one organization.
  • Which projects: all projects in that organization, or only the ones you pick.
  • What it may do: a preset (full access, builder, or read-only) or individual permissions. You can never grant more than your own role in that organization allows.
  • An optional expiry for the connection.

No token passes through the chat, and nothing is stored on the MCP server between requests. If your role in the organization is reduced, the connection loses those permissions right away.

To see, change or disconnect your connected assistants, open Connected apps in Lamatic Studio. Disconnecting takes effect within about 5 minutes for an assistant that is in the middle of a session.

To work in a different organization, ask your assistant to run switch_organization (or connect again), and pick the other organization on the sign-in page.

Ask your assistant to run auth_status at any time to see which organization, role and permissions the connection has, and which calls it can make.


Tools

Lamatic MCP has 22 tools. Related operations share one tool and take an action (for example flows with action: "list" or "get"), which keeps the list short enough for assistants to choose well. Tools that only read are always separate from tools that change things, so your client can confirm changes without asking about every read.

Every project tool takes a projectId. Your assistant gets it from projects, so you can refer to projects by name.

Account and projects

ToolActionsDescription
auth_statusShow the organization, role and permissions of this connection, and which calls it can make
projectslist, getList the projects this connection can work in, or read one
switch_organizationReconnect to a different organization (signs in again)
get_guideRead a built-in guide: capabilities, conventions, troubleshooting, flow-template-chat

Flows

ToolActionsDescription
flowslist, getList active flows with their input schemas, or load one flow’s full graph
create_flowCreate a flow from a node and edge graph
update_flowReplace a flow’s nodes and edges and/or its status (a full replace, not a merge)
run_flowtest, executeRun a flow’s saved version without deploying, or its deployed version
generate_flow_skillsGenerate one Claude Skill per flow (what it does, when to use it, how to call it)

Nodes and models

ToolActionsDescription
nodeslist, list_runnable, getList node types for building flows, list nodes that can run on their own, or get one node’s configuration schema
run_nodeRun a single node directly, outside a flow — for example post to Slack or scrape a page
modelslist, providers, statusList the model credentials in a project, the supported providers, or whether a model is available
create_model_credentialAdd a model provider credential. You enter the key on a Lamatic page, never in the chat
list_secretsList secret names (never values) to reference in flows

Deployments and logs

ToolActionsDescription
deployDeploy the project’s flows (runs in the background)
deploymentslist, getList the project’s deployments, or get one’s status, changes and duration
logslist, trace, trace_childrenFetch execution logs, or a run’s node-by-node trace
set_loggingTurn execution logging on or off (takes effect after the next deployment)

Data

ToolActionsDescription
databaselist_tables, describe_tableList the tables in the project’s D1 database, or a table’s columns
database_writequery, create_table, drop_tableRun a SQL query, or create or delete a table
vector_storesearch, list_collections, get_collection, list_records, get_recordSearch a VectorDB collection, ranked by relevance, or browse collections and records
vector_store_writecreate_collection, update_record, delete_collectionCreate or delete a collection, or update a record

Before version 4.0 these tools had a graph_ prefix and there were 43 of them (for example graph_list_flows, now flows with action: "list"). If you wrote prompts or allowlists against the old names, update them.

The tools you see depend on the permissions you approved. A read-only connection, for example, does not get the tools that change anything.


Prompts

Clients that support MCP prompts show these as slash commands:

  • /build_flow: build a new flow step by step
  • /debug_flow: find out why a flow fails
  • /deploy_and_verify: deploy and confirm the change is live

Supported flow triggers

run_flow can run flows with these triggers:

TriggerSupported
API Requestâś…
Chat Widgetâś…
Search Widgetâś…
Webhookâś…
Cron⚠️ Needs trigger data in the payload
Google Sheets⚠️ Needs trigger data in the payload

Running a flow needs an active project API key in Studio. Lamatic uses it on the server for you, so it never reaches your assistant.


Example prompts

list my Lamatic projects
show me the flows in the Support project
run the Changelog flow with sampleInput "hello world"
add a step to the RAG flow that summarizes the answer, then deploy it
why did the last run of the Onboarding flow fail?

Was this page useful?

Subscribe to updates