DEV Community

Jervi
Jervi Subscriber

Posted on

Connect LM Studio to Antigravity IDE Using MCP

I wanted to use my local LM Studio models inside Antigravity IDE, so I connected them through MCP.

from jervi-writes blog

Requirements

  • Antigravity IDE
  • LM Studio
  • A loaded model (Gemma, Qwen, Llama, etc.)
  • uv installed, if not then do install it with following brew install uv

Start the LM Studio server:

Developer → Local Server
Enter fullscreen mode Exit fullscreen mode

Default endpoint:

http://127.0.0.1:1234/v1
Enter fullscreen mode Exit fullscreen mode

Method 1: Using uvx (Recommended)

Add this to your Antigravity MCP config:

{
  "mcpServers": {
    "lmstudio-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "git+https://github.com/infinitimeless/LMStudio-MCP"
      ],
      "env": {
        "LMSTUDIO_HOST": "127.0.0.1",
        "LMSTUDIO_PORT": "1234"
      }
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

Important: Use git+https://, otherwise you'll get:

Direct URL references a Git repository,
but is missing the git+ prefix
Enter fullscreen mode Exit fullscreen mode

Reload Antigravity.

Method 2: Clone Locally

git clone https://github.com/infinitimeless/LMStudio-MCP.git
cd LMStudio-MCP

python3 -m venv venv
source venv/bin/activate

pip install requests "mcp[cli]" openai
Enter fullscreen mode Exit fullscreen mode

MCP config:

{
  "mcpServers": {
    "lmstudio-mcp": {
      "type": "stdio",
      "command": "/bin/bash",
      "args": [
        "-c",
        "cd ~/LMStudio-MCP && source venv/bin/activate && python lmstudio_bridge.py"
      ]
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

Reload Antigravity.

Test

Ask:

Use lmstudio-mcp health_check
Enter fullscreen mode Exit fullscreen mode

Or:

Use lmstudio-mcp to explain this file
Enter fullscreen mode Exit fullscreen mode

How It Works

Antigravity
    ↓
MCP Bridge
    ↓
LM Studio
    ↓
Local Model
Enter fullscreen mode Exit fullscreen mode

This does not replace Antigravity's main model.

It gives Antigravity access to your local model as an MCP tool, allowing you to use Gemma, Qwen, Llama, DeepSeek, or any model loaded in LM Studio.

Repository:

https://github.com/infinitimeless/LMStudio-MCP

Top comments (0)