Llmgraph

io.github.abahocodes由 GitHub 帳號 abahocodes 發布v0.1.1更新於 Oct 24, 2026

Invoke deployed LLMGraph no-code LLM workflows (chat, RAG, automations) as MCP tools.

概覽

AI 產生的概覽

把你在 LLMGraph 上部署的無程式碼工作流程(對話、RAG、自動化)公開為助理可呼叫的 MCP 工具。

可以做什麼
  • 以單一 MCP 工具呼叫已部署的 LLMGraph 工作流程,任意輸入物件會原樣作為請求內容傳入
  • 以使用者訊息與選用的對話歷史執行對話式工作流程
  • 一次註冊多個部署,每個部署成為各自命名的工具,可分別設定描述與 schema 模式
  • 把 LLMGraph 介面錯誤(金鑰無效、訂閱受限、速率或預算限制、逾時)以工具錯誤回傳給助理
適用情境
適合已在 LLMGraph 上建好並部署工作流程,希望 Claude Desktop、Claude Code、Cursor 或其他 MCP 用戶端直接呼叫這些工作流程的情境,包括對話助理、RAG 與自動化流程。
執行需求
以 stdio 在本機執行,通常透過 npx 啟動,需要 Node.js 18 或更新版本。需要一個已部署的 LLMGraph 工作流程:從 LLMGraph 儀表板取得部署端點 URL 填入 LLMGRAPH_ENDPOINT,以及 API 金鑰填入 LLMGRAPH_API_KEY。選用變數可設定工具名稱、描述、schema 模式與逾時。
安裝前請注意
API 金鑰屬於機密,會以 x-api-key 標頭送到所設定的端點;用戶端設定檔會以明文在本機保存該金鑰。執行工作流程可能消耗 LLMGraph 訂閱額度,並可能受到速率或預算限制。工具呼叫會把輸入送到 LLMGraph 部署,且可能觸發執行自動化的工作流程。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Llmgraph,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@llmgraph/mcp-server

A Model Context Protocol (MCP) server that exposes your LLMGraph workflow deployments as MCP tools. Connect it to Claude Desktop, Claude Code, Cursor, or any other MCP client, and your assistant can invoke the workflows you built and deployed on LLMGraph.

Each configured deployment becomes one MCP tool. The server runs over stdio and is designed to be launched with npx, so there is nothing to install permanently.

Prerequisites

  • Node.js 18 or newer
  • A deployed LLMGraph workflow: copy the deployment endpoint URL (shaped like https://llmgraph.ai/api/<graph_id>/<environment>) and an API key from the LLMGraph dashboard

Configuration

All configuration is via environment variables.

Single deployment (simple path)

VariableRequiredDescription
LLMGRAPH_ENDPOINTyesFull deployment endpoint URL copied from the dashboard
LLMGRAPH_API_KEYyesSecret API key for the deployment
LLMGRAPH_TOOL_NAMEnoTool name shown to the client (default: invoke_workflow)
LLMGRAPH_TOOL_DESCRIPTIONnoTool description shown to the model
LLMGRAPH_SCHEMA_MODEnoinput (default) or chat, see below
LLMGRAPH_TIMEOUT_MSnoRequest timeout in milliseconds, positive integer (default: 180000). Applies in both single and multiple deployment modes.

Multiple deployments (advanced path)

Set LLMGRAPH_DEPLOYMENTS to a JSON array; each entry becomes one tool. When set, it takes precedence over the single-deployment variables.

json
[  {    "name": "summarize_document",    "description": "Summarizes a document with the LLMGraph summarizer workflow",    "endpoint": "https://llmgraph.ai/api/abc123/production",    "apiKey": "your-api-key"  },  {    "name": "support_bot",    "description": "Asks the support assistant workflow a question",    "endpoint": "https://llmgraph.ai/api/def456/production",    "apiKey": "your-other-api-key",    "inputSchema": "chat"  }]

Schema modes

  • input (default): the tool takes { "input": <object> } and the object is passed through unchanged as the POST body, so it works with any workflow input shape.
  • chat: for chat-style workflows. The tool takes { "user_input": <string>, "history": [{"role": "user"|"assistant", "content": <string>}] } (history optional) and sends it in the shape chat workflows expect.

Client setup

Claude Desktop

Add to claude_desktop_config.json (Settings, Developer, Edit Config):

json
{  "mcpServers": {    "llmgraph": {      "command": "npx",      "args": ["-y", "@llmgraph/mcp-server"],      "env": {        "LLMGRAPH_ENDPOINT": "https://llmgraph.ai/api/abc123/production",        "LLMGRAPH_API_KEY": "your-api-key",        "LLMGRAPH_TOOL_NAME": "summarize_document",        "LLMGRAPH_TOOL_DESCRIPTION": "Summarizes a document with my LLMGraph workflow"      }    }  }}

Restart Claude Desktop and the tool appears in the tools menu.

Claude Code

bash
claude mcp add llmgraph \  --env LLMGRAPH_ENDPOINT=https://llmgraph.ai/api/abc123/production \  --env LLMGRAPH_API_KEY=your-api-key \  -- npx -y @llmgraph/mcp-server

Cursor

Add to ~/.cursor/mcp.json (or .cursor/mcp.json in your project):

json
{  "mcpServers": {    "llmgraph": {      "command": "npx",      "args": ["-y", "@llmgraph/mcp-server"],      "env": {        "LLMGRAPH_ENDPOINT": "https://llmgraph.ai/api/abc123/production",        "LLMGRAPH_API_KEY": "your-api-key"      }    }  }}

Error handling

Non-200 responses from the LLMGraph API are returned to the client as MCP tool errors carrying the API's error message:

StatusMeaning
400invalid request body
401missing or invalid API key
402subscription blocked
403API disabled or origin not allowed
404unknown deployment or wrong API key
422workflow run failed
429rate or budget limited
504workflow timed out

Security notes

  • LLMGraph API keys are secrets for server-side use. This server sends the key only as the x-api-key header of requests to your configured endpoint, and never writes it to stdout, stderr, or error messages.
  • Client config files like claude_desktop_config.json store the key in plain text on your machine; treat them accordingly.

Development

bash
npm installnpm run build   # compiles TypeScript to dist/npm test        # builds, then runs unit tests (node --test), no network calls

License

MIT, see LICENSE.

來源:README.md,提交 35d0697

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分