# 📋 LM Studio Configuration Snippet
## For Users to Copy & Paste
Once you have ngrok running and exposing your SearXNG instance, share this snippet with users:
---
### **Simple Copy-Paste Configuration for LM Studio**
**Step 1:** Open LM Studio Settings → Developer → MCP Servers
**Step 2:** Paste this configuration:
```json
{
"mcpServers": {
"searxng-web-search": {
"command": "npx",
"args": [
"-y",
"tsx",
"https://raw.githubusercontent.com/YOUR-USERNAME/YOUR-REPO/main/index.js"
],
"env": {
"SEARXNG_URL": "https://YOUR-NGROK-URL.ngrok.io"
}
}
}
}
```
**Step 3:** Replace `YOUR-NGROK-URL` with the actual ngrok URL you provide
**Step 4:** Restart LM Studio
---
## Alternative: Local Installation Method
If you prefer users to download and run locally:
```json
{
"mcpServers": {
"searxng-web-search": {
"command": "node",
"args": [
"C:\\path\\to\\public mcp\\index.js"
],
"env": {
"SEARXNG_URL": "https://YOUR-NGROK-URL.ngrok.io"
}
}
}
}
```
**Users need to:**
1. Download your MCP server files
2. Run `npm install` in the directory
3. Update the path in `args` to point to their `index.js` location
4. Update `SEARXNG_URL` with your ngrok URL
---
## For GitHub Distribution
If you upload this to GitHub, users can use:
```json
{
"mcpServers": {
"searxng-web-search": {
"command": "npx",
"args": [
"-y",
"github:YOUR-USERNAME/YOUR-REPO"
],
"env": {
"SEARXNG_URL": "https://YOUR-NGROK-URL.ngrok.io"
}
}
}
}
```
---
## What This Provides
Once configured, users can:
- Search the web directly from LM Studio
- Filter by categories (news, images, videos, science, etc.)
- Set language preferences
- Filter by time range (day, week, month, year)
- Control safe search settings
**Example prompts:**
- "Search for the latest AI news from this week"
- "Find scientific papers about quantum computing"
- "Search for images of the northern lights"
---
## Your Current Setup
**SearXNG Instance:** `192.168.1.44:55001` (local)
**To share publicly:**
1. Run: `ngrok http 192.168.1.44:55001`
2. Copy the ngrok URL (e.g., `https://abc123.ngrok.io`)
3. Share that URL with users to put in `SEARXNG_URL`
**Note:** Free ngrok URLs change each time you restart. Consider upgrading to ngrok Pro for a permanent URL.