Cover image
Try Now
2025-04-14

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

Domino MCP Server for Cursor

This project provides a Model Context Protocol (MCP) server that allows Cursor to interact with the Domino Data Lab platform. It enables you to start and check the status of Domino jobs directly from the Cursor chat interface.

Features

  • Run Domino Jobs: Execute commands (e.g., Python scripts) as jobs within a specified Domino project.
  • Check Job Status: Retrieve the status and results of a specific Domino job run.

Setup

  1. Clone the Repository:

    # If you haven't already, clone the repository containing this server
    git clone https://github.com/etanlightstone/domino_mcp_server.git
    cd domino_mcp_server
    
  2. Install Dependencies: This server requires Python and the fastmcp and requests libraries. Ensure you have uv installed (https://github.com/astral-sh/uv). Install the dependencies using uv:

    uv pip install -e .
    
  3. Set API Key using .env file: The server needs your Domino API key to authenticate requests. Obtain your API key from your Domino account settings. Create a file named .env in the root directory of this project (the same directory as domino_mcp_server.py) and add the following line, replacing 'your_api_key_here' with your actual key:

    DOMINO_API_KEY='your_api_key_here'
    

    Note: Ensure .env is added to your .gitignore file to prevent accidentally committing your API key.

  4. Configure Cursor: To make Cursor aware of this MCP server, you need to configure it. Create or edit the MCP configuration file for your project or globally:

    • Project-specific: Create a file named .cursor/mcp.json in the root of your project directory.
    • Global: Create a file named ~/.cursor/mcp.json in your home directory.

    Add the following JSON configuration to the file, adjusting the <path_to_directory> to the actual absolute path of the directory containing the domino_mcp_server.py script and your .env file:

     {
         "mcpServers": {
             "domino_server": {
             "command": "uv",
             "args": [
                 "--directory",
                 "/Users/etan.lightstone/Documents/code_projects/domino_mcp_server",
                 "run",
                 "domino_mcp_server.py"
             ] 
             }
         }
     }
*Replace `<path_to_directory>` with the correct absolute path to the folder containing `domino_mcp_server.py` and `.env`.*
*`uv run` will automatically load the `DOMINO_API_KEY` from the `.env` file located in the specified directory.*
  1. Restart Cursor: Restart Cursor completely to load the new MCP configuration.

  2. Verify: Go to Cursor Settings -> Context -> Model Context Protocol. You should see "domino_server" listed under Available Tools.

Usage in Cursor

Once the MCP server is configured, add two files to your datascience project. First add a cursor rule: cursor/rules/domino-project-rule.mdc (SET TO ALWAYS)

You are a Domino Data Lab powered agentic coding tool that helps write code in addition to running tasks on the Domino Data Lab platform on behalf of the user using available tool functions provided by the domino_server MCP server. Including functions like domino_server. Whenever possible run commands as domino jobs rather than on the local terminal.

The domino project name and user name are required and available in a file called domino_project_settings.md which need to be used in most tool calls by the agentic assistant.

When running a job, always check its status and return any conclusions from the result of the job run.

domino_project_settings.md (in your main project folder)

Domino project settings to use with the mcp server domino_server and its job runner functions

project_name="diabetes-predict" user_name="etan_lightstone"

Once configured, you can interact with the Domino server directly in the Cursor chat:

  • To run a job:

    Run the script train_my_model.py and pipe the results into a results.txt file. Check that the job run executed correctly afterwards.
    
    Read how the domino_trainer.py is called and run two seperate jobs, one using a larger neural net and the other smaller, both can be 20 epochs.
    

Cursor's agent will understand your request and use the appropriate tool from the domino_server. It will ask for confirmation before executing the tool (unless you have auto-run enabled). The results from the Domino API will be displayed in the chat.

How it Works

The domino_mcp_server.py script uses the fastmcp library to define an MCP server. It exposes two functions (run_domino_job and check_domino_job_run_result) as tools that Cursor can call. These functions make authenticated REST API calls to the Domino platform (https://cloud-dogfood.domino.tech) using the DOMINO_API_KEY loaded from the .env file (local to the mcp server not your cursor project).

The server is configured to run using stdio transport, meaning Cursor starts and manages the Python script process locally (using uv run) and communicates with it via standard input/output.

相关推荐

  • av
  • Exécutez sans effort LLM Backends, API, Frontends et Services avec une seule commande.

  • 1Panel-dev
  • 🔥 1Panel fournit une interface Web intuitive et un serveur MCP pour gérer des sites Web, des fichiers, des conteneurs, des bases de données et des LLM sur un serveur Linux.

  • rulego
  • ⛓️RULEGO est un cadre de moteur de règle d'orchestration des composants de nouvelle génération légère, intégrée, intégrée et de nouvelle génération pour GO.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.

  • Onelevenvy
  • Flock est une plate-forme à faible code de workflow pour construire rapidement des chatbots, un chiffon et coordonner des équipes multi-agents, alimentée par Langgraph, Langchain, Fastapi et NextJs. (Flock 是一个基于 Workflow 工作流的低代码平台 , 用于快速构建聊天机器人、 Rag 、 Agent 和 和 , 采用 采用 采用 采用 Langgraph 、 Langchain 、 Fastapi 和 ,))

  • Byaidu
  • PDF Traduction de papier scientifique avec formats conservés - 基于 AI 完整保留排版的 PDF 文档全文双语翻译 , 支持 Google / Deepl / Olllama / Openai 等服务 , 提供 CLI / GUI / MCP / DOCKER / ZOTERO

  • n8n-io
  • Plateforme d'automatisation de workflow à code équitable avec des capacités d'IA natives. Combinez le bâtiment visuel avec du code personnalisé, de l'auto-hôte ou du cloud, 400+ intégrations.

  • hkr04
  • SDK C ++ MCP (Protocole de contexte modèle léger)

  • sigoden
  • Créez facilement des outils et des agents LLM à l'aide de fonctions Plain Bash / JavaScript / Python.

  • RockChinQ
  • 😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 QQ / 微信 (企业微信、个人微信) / 飞书 / 钉钉 / Discord / Telegram / Slack 等平台 | 支持 Chatgpt 、 Deepseek 、 Dify 、 Claude 、 GEMINI 、 XAI 、 PPIO 、 OLLAMA 、 LM Studio 、阿里云百炼、火山方舟、 Siliconflow 、 Qwen 、 Moonshot 、 ChatGlm 、 Sillytraven 、 MCP 等 LLM 的机器人 / Agent | Plateforme de bots de messagerie instantanée basés sur LLM, prend en charge Discord, Telegram, WeChat, Lark, Dingtalk, QQ, Slack

    Reviews

    3.1 (11)
    Avatar
    user_wdlUL477
    2025-04-23

    As a dedicated user of domino_mcp_server by etanlightstone, I am thoroughly impressed by its seamless integration and robust performance. Its user-friendly interface and reliable functionality have significantly enhanced my workflow. Highly recommend this tool for anyone seeking efficiency and stability in their MCP applications!

    Avatar
    user_xwXmiQdN
    2025-04-23

    I've been a dedicated user of the domino_mcp_server by etanlightstone, and it has revolutionized my productivity. The seamless integration and user-friendly interface make managing my projects effortless. Highly recommended for anyone looking to streamline their workflow!

    Avatar
    user_ohK5gVdX
    2025-04-23

    As a dedicated user of the domino_mcp_server by etanlightstone, I can confidently say it's an outstanding tool for managing MCP applications. Its intuitive design and robust functionality make it an invaluable asset in any developer's toolkit. The seamless integration and reliable performance consistently exceed my expectations. Highly recommend!

    Avatar
    user_SEnwR6cq
    2025-04-23

    As a dedicated user of domino_mcp_server created by etanlightstone, I am thoroughly impressed with its performance and reliability. This server application has significantly streamlined my workflow, providing a seamless and robust platform for my projects. Highly recommended for anyone in need of a dependable server solution!

    Avatar
    user_e9T5wSS6
    2025-04-23

    The domino_mcp_server by etanlightstone is an outstanding application for MCP enthusiasts. It offers seamless integration and reliable performance, making my workflow smoother and more efficient. This server platform is robust and user-friendly, fulfilling all my requirements superbly. Highly recommended for anyone looking to optimize their MCP operations!

    Avatar
    user_iQmbznXV
    2025-04-23

    I have been using domino_mcp_server for a while now, and it has exceeded my expectations in every way. It's reliable, efficient, and seamlessly integrates with my existing systems. The support from etanlightstone is exceptional, and the user interface is very intuitive. This product has truly optimized my workflow and I couldn't be happier with its performance. Highly recommended!

    Avatar
    user_Av90iT27
    2025-04-23

    The domino_mcp_server by etanlightstone is an exceptional product for anyone looking to streamline their server management. It’s efficient, user-friendly, and integrates seamlessly into my workflow. The welcome information is comprehensive and the start URL guides you perfectly through the initial setup. Highly recommend it for both beginners and advanced users!

    Avatar
    user_CyXcYxTH
    2025-04-23

    I have been using the domino_mcp_server by etanlightstone for a few months now, and it has completely transformed my workflow. The seamless integration with my existing systems and the intuitive interface make it a joy to use. I also appreciate the detailed documentation and ongoing support from the developer. Highly recommended for anyone looking to enhance their server management capabilities!

    Avatar
    user_W1oXTKKx
    2025-04-23

    As a devoted user of the domino_mcp_server, I must say it has significantly enhanced my workflow. The seamless integration and ease of use provided by etanlightstone’s software streamline processes and improve productivity. The intuitive interface and reliable performance make it a must-have tool for any professional. Highly recommended!

    Avatar
    user_1Q0Uf2Kg
    2025-04-23

    As a dedicated user of domino_mcp_server by etanlightstone, I find it an exceptional solution for managing server tasks. Its user-friendly interface and robust performance streamline my workflow efficiently. Highly recommended!

    Avatar
    user_qQQDdmTc
    2025-04-23

    As a dedicated user of the domino_mcp_server by etanlightstone, I must say it's a game-changer for managing my server processes efficiently. The product is robust and reliable, making complex tasks seamless. Highly recommended for anyone looking for a top-notch server management solution.