> ## Documentation Index
> Fetch the complete documentation index at: https://docs.geekflare.com/llms.txt
> Use this file to discover all available pages before exploring further.

# LM Studio

> Connect Geekflare MCP server to LM Studio to give local LLMs web scraping, search, screenshot, and DNS tools.

[LM Studio](https://lmstudio.ai) lets you run large language models locally on your machine. With MCP support (available from LM Studio 0.3.6+), you can connect Geekflare tools to any local model, giving it the ability to scrape pages, search the web, take screenshots, and look up DNS.

## Setup

**1. Open the Developer settings**

In LM Studio, go to **Settings → Developer** and enable **MCP Servers**.

**2. Edit the MCP config file**

LM Studio uses a JSON config file. Open it via **Settings → Developer → Edit MCP Config** and add:

> [tab] Remote URL (Recommended)
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "geekflare": {
>       "url": "https://mcp.geekflare.com/YOUR_API_KEY/mcp"
>     }
>   }
> }
> ```

> [tab] Local via npx
>
> Requires [Node.js](https://nodejs.org) installed locally.
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "geekflare": {
>       "command": "npx",
>       "args": ["-y", "@geekflare/mcp"],
>       "env": {
>         "API_KEY": "YOUR_API_KEY"
>       }
>     }
>   }
> }
> ```

Replace `YOUR_API_KEY` with your Geekflare API key. Save the file.

**3. Restart LM Studio**

Restart LM Studio to load the new MCP server. Open a chat and verify the tools appear in the tool list.

## Usage Examples

In the LM Studio chat with any local model:

**Scrape a webpage**

```
Scrape https://example.com and extract the main content as markdown.
```

**Search the web**

```
Search for "LLM fine-tuning guide" and summarize the top results.
```

**Screenshot**

```
Take a screenshot of https://lmstudio.ai and tell me what you see.
```

**DNS lookup**

```
Look up the A and MX records for lmstudio.ai.
```

> [!NOTE]
>
> Tool calling capability depends on the local model you are using. Models with
> strong function-calling support (e.g. Qwen, Mistral, Llama 3.1+) will use
> Geekflare tools more reliably.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.