# DINO-X MCP Server [](https://opensource.org/licenses/Apache-2.0) [](https://www.npmjs.com/package/@deepdataspace/dinox-mcp) [](https://www.npmjs.com/package/@deepdataspace/dinox-mcp) [](https://github.com/IDEA-Research/DINO-X-MCP/pulls) [](https://lobehub.com/mcp/idea-research-dino-x-mcp) [](https://github.com/IDEA-Research/DINO-X-MCP/stargazers) **English** | [δΈζ](README_ZH.md) DINO-X Official MCP Server β powered by the DINO-X and Grounding DINO models β brings fine-grained object detection and image understanding to your multimodal applications.
## Why DINO-X MCP? With DINO-X MCP, you can: - Fine-Grained Understanding: Full image detection, object detection, and region-level descriptions. - Structured Outputs: Get object categories, counts, locations, and attributes for VQA and multi-step reasoning tasks. - Composable: Works seamlessly with other MCP servers to build end-to-end visual agents or automation pipelines. ## Transport Modes DINO-X MCP supports two transport modes: | Feature | STDIO (default) | Streamable HTTP | |:--|:--|:--| | Runtime | Local | Local or Cloud | | Transport | Standard I/O | HTTP (streaming responses) | | Input source | `file://` and `https://` | `https://` only | | Visualization | Supported (saves annotated images locally) | Not supported (for now) | ## Quick Start ### 1. Prepare an MCP client Any MCP-compatible client works, e.g.: - [Cursor](https://www.cursor.com/) - [WindSurf](https://windsurf.com/) - [Trae](https://www.trae.ai/) - [Cherry Studio](https://www.cherry-ai.com/) ### 2. Get your API key Apply on the DINO-X platform: [Request API Key](https://cloud.deepdataspace.com/request_api) (new users get free quota). ### 3. Configure MCP #### Option A: Official Hosted Streamable HTTP (Recommended) Add to your MCP client config and replace with your API key: ```json { "mcpServers": { "dinox-mcp": { "url": "https://mcp.deepdataspace.com/mcp?key=your-api-key" } } } ``` #### Option B: Use the NPM package locally (STDIO) Install Node.js first - Download the installer from [nodejs.org](https://nodejs.org/) - Or use command: ```bash # macOS / Linux curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash # or wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash # load nvm into current shell (choose the one you use) source ~/.bashrc || true source ~/.zshrc || true # install and use LTS Node.js nvm install --lts nvm use --lts # Windows (one of the following) winget install OpenJS.NodeJS.LTS # or with Chocolatey (in admin PowerShell) iwr -useb https://raw.githubusercontent.com/chocolatey/chocolatey/master/chocolateyInstall/InstallChocolatey.ps1 | iex choco install nodejs-lts -y ``` Configure your MCP client: ```json { "mcpServers": { "dinox-mcp": { "command": "npx", "args": ["-y", "@deepdataspace/dinox-mcp"], "env": { "DINOX_API_KEY": "your-api-key-here", "IMAGE_STORAGE_DIRECTORY": "/path/to/your/image/directory" } } } } ``` Note: Replace `your-api-key-here` with your real key. #### Option C: Run from source locally Make sure Node.js is installed (see Option B), then: ```bash # clone git clone https://github.com/IDEA-Research/DINO-X-MCP.git cd DINO-X-MCP # install deps npm install # build npm run build ``` Configure your MCP client: ```json { "mcpServers": { "dinox-mcp": { "command": "node", "args": ["/path/to/DINO-X-MCP/build/index.js"], "env": { "DINOX_API_KEY": "your-api-key-here", "IMAGE_STORAGE_DIRECTORY": "/path/to/your/image/directory" } } } } ``` ## CLI Flags & Environment Variables - Common flags - `--http`: start in Streamable HTTP mode (otherwise STDIO by default) - `--stdio`: force STDIO mode - `--dinox-api-key=...`: set API key - `--enable-client-key`: allow API key via URL `?key=` (Streamable HTTP only) - `--port=8080`: HTTP port (default 3020) - Environment variables - `DINOX_API_KEY` (required/conditionally required): DINO-X platform API key - `IMAGE_STORAGE_DIRECTORY` (optional, STDIO): directory to save annotated images - `AUTH_TOKEN` (optional, HTTP): if set, client must send `Authorization: Bearer