Lm Chat

communication MCP Server

Web frontend for LM Studio — browser access, adaptive memory, multi-user auth, MCP tools

Verified
communicationcommunication
5 views2 stars0 forksAGPL-3.0

Why This Matters

Discovered via github-topic:model-context-protocol and last synced 3mo ago.

Verified
Source
github-topic:model-context-protocol
Stars
2
Last synced
3mo ago
Install
Check source

Install

Install instructions not detected yet

Check the source repository for the latest setup steps.

View source instructions
27
Tools
0
Resources
0
Prompts
Standard I/O
Transport

Available Tools (27)

LM_CHAT_DEBUG

*(off)*

LM_CHAT_SCRYPT_R

`8`

Yes

Yes (via native API)

LM_CHAT_ADMIN_USER

`admin`

LM_CHAT_SETUP_TOKEN

*(off)*

Feature

Native API (`/api/v1/chat`)

LMSTUDIO_TOKEN

*(empty)*

LM_CHAT_HSTS

*(off)*

Command

Mode

Tab

Contents

No

Yes

Session-based

SQLite-backed

Default

Description

PORT

`3001`

LMSTUDIO_URL

`http://localhost:1234`

LM_CHAT_AUTH

`true`

LM_CHAT_SECRET

*(auto-generated)*

LM_CHAT_ADMIN_PASS

*(auto-generated)*

LM_CHAT_DB

`./chats.db`

LM_CHAT_LOGS

`./logs`

LM_CHAT_HTTPS

*(off)*

LM_CHAT_HSTS_MAX_AGE

`63072000`

LM_CHAT_SINGLE_SESSION

*(off)*

LM_CHAT_SCRYPT_N

`131072`

LM_CHAT_SCRYPT_P

`1`

LMSTUDIO_MCP_JSON

`~/.lmstudio/mcp.json`

Browser-based

--- ## Architecture ``` browser ──HTTP──> server.py ──HTTP──> LM Studio (port 3001) (port 1234) SQLite · Auth MCP servers Memory · Logging Inference ``` - **`server.py`** — stdlib Python, zero dependencies. Proxies native API, persists chats, manages auth, indexes embeddings, handles memory distillation, structured logging. ~5.4k lines. - **`qr.py`** — pure-Python QR code generator for TOTP enrollment. ~345 lines. - **`index.html`** — HTML shell. ~685 lines. - **`style.css`** — all CSS, organized with `@layer` and native nesting. ~3.7k lines. - **`app.js`** — all client-side JS. ~7.5k lines. - **`manifest.json` + `sw.js`** — PWA support. - **`highlight.min.js` + `highlight.min.css`** — vendored syntax highlighting, no CDN. - **`logs/`** — rotating debug logs (auto-created, gitignored). No frameworks. No transpilation. No node_modules. No build step. --- ## Configuration