TT

tulip/tulip-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

6 stars 2 forks 质量 81 趋势 22Apache-2.0

A Model Context Protocol (MCP) server for a Tulip instance

概览

A Model Context Protocol (MCP) server that provides comprehensive access to the Tulip API, enabling LLMs to interact with the Tulip manufacturing platform functionality including tables, records, machines, stations, interfaces, users, and more. Before you begin, ensure you have Node.js installed on your system. This is required to run the server. This guide will walk you through running the server and connecting it to an MCP client like Cursor or Claude Desktop. Create a file named .env in a folder of your choice. Copy and paste the following, replacing the placeholders with your actual Tulip credentials. - Your TULIP_BASE_URL is the URL you use to access Tulip (e.g., https://my-company.tulip.co). - Your TULIP_WORKSPACE_ID is in your Tulip URL after /w/ (for most users, this is DEFAULT). ⚠️ : The TULIP_WORKSPACE_ID is only required if you are using an Account API key (obtained from Account Settings).

README

以下为原文 README 节选,完整内容请查看原文。

Tulip MCP Server

A Model Context Protocol (MCP) server that provides comprehensive access to the Tulip API, enabling LLMs to interact with the Tulip manufacturing platform functionality including tables, records, machines, stations, interfaces, users, and more.

✨ Prerequisites

Before you begin, ensure you have Node.js installed on your system. This is required to run the server.

🚀 Getting Started

This guide will walk you through running the server and connecting it to an MCP client like Cursor or Claude Desktop.

1. Configure Your Credentials

Create a file named .env in a folder of your choice. Copy and paste the following, replacing the placeholders with your actual Tulip credentials.

  • Your TULIP_BASE_URL is the URL you use to access Tulip (e.g., https://my-company.tulip.co).
  • Your TULIP_WORKSPACE_ID is in your Tulip URL after /w/ (for most users, this is DEFAULT).
TULIP_API_KEY=your_api_key_here
TULIP_API_SECRET=your_api_secret_here
TULIP_BASE_URL=https://your-instance.tulip.co
TULIP_WORKSPACE_ID=your_workspace_id_here_if_using_account_api_key

⚠️ Important: The TULIP_WORKSPACE_ID is only required if you are using an Account API key (obtained from Account Settings). If you are using a Workspace API key (obtained from Workspace Settings), you can leave this field empty.

2. Run the Server

Open your terminal or command prompt, navigate to the folder containing your .env file, and run:

npx @tulip/mcp-server

The server will start and is now ready to be connected to an MCP client.


🔌 Connecting to an MCP Client

When using a client, the server is run in a different environment where it may not find your .env file automatically. To solve this, you must provide the full path to your .env file using the --env flag.

  1. From the Claude Desktop menu bar, select Settings… > Developer > Edit Config.
  2. This will open the claude_desktop_config.json file.
  3. Add the server configuration inside the mcpServers object. You must replace "C:\\path\\to\\your\\.env" with the actual path you copied.
    {
      "mcpServers": {
        "tulip-mcp": {
          "command": "npx",
          "args": [
            "@tulip/mcp-server",
            "--env",
            "C:\\path\\to\\your\\.env"
          ]
        }
      }
    }
    
  4. Save the file and restart Claude Desktop.
在 GitHub 查看完整 README

安装

npx @tulip/mcp-server --env C:\\path\\to\\your\\.env
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "tulip-mcp": { "command": "npx", "args": [ "@tulip/mcp-server", "--env", "C:\\path\\to\\your\\.env" ] } } }