> ## 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

<Steps>
  <Step title="Open the Developer settings">
    In LM Studio, go to **Settings → Developer** and enable **MCP Servers**.
  </Step>

  <Step title="Edit the MCP config file">
    LM Studio uses a JSON config file. Open it via **Settings → Developer → Edit MCP Config** and add:

    <Tabs>
      <Tab title="Remote URL (Recommended)">
        ```json theme={null}
        {
          "mcpServers": {
            "geekflare": {
              "url": "https://mcp.geekflare.com/YOUR_API_KEY/mcp"
            }
          }
        }
        ```
      </Tab>

      <Tab title="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"
              }
            }
          }
        }
        ```
      </Tab>
    </Tabs>

    Replace `YOUR_API_KEY` with your Geekflare API key. Save the file.
  </Step>

  <Step title="Restart LM Studio">
    Restart LM Studio to load the new MCP server. Open a chat and verify the tools appear in the tool list.
  </Step>
</Steps>

## 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.
```

<Info>
  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.
</Info>
