
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_URLis the URL you use to access Tulip (e.g.,https://my-company.tulip.co). - Your
TULIP_WORKSPACE_IDis in your Tulip URL after/w/(for most users, this isDEFAULT).
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.
- From the Claude Desktop menu bar, select Settings… > Developer > Edit Config.
- This will open the
claude_desktop_config.jsonfile. - Add the server configuration inside the
mcpServersobject. 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" ] } } } - Save the file and restart Claude Desktop.
安装
npx @tulip/mcp-server --env C:\\path\\to\\your\\.env配置
{
"mcpServers": {
"tulip-mcp": {
"command": "npx",
"args": [
"@tulip/mcp-server",
"--env",
"C:\\path\\to\\your\\.env"
]
}
}
}