# Use Comma with LM Studio — let a local model publish HTML reports

Canonical: https://commareports.com/mcp/lm-studio
Published: 2026-09-16

> Add Comma to LM Studio's mcp.json with a url and Bearer header. A local model with tool use can publish HTML reports to a shareable, commentable link.

# Use Comma with LM Studio

Running the model locally keeps the reasoning on your machine; the report it writes still has to reach people. LM Studio supports remote MCP servers, so a local model with tool use can publish its output to Comma and hand back a link — the report is the only thing that leaves.

## Add Comma to LM Studio

In LM Studio, open the **Program** tab in the right sidebar → **Install** → **Edit mcp.json**.

```json
{
  "mcpServers": {
    "comma": {
      "url": "https://commareports.com/api/mcp",
      "headers": {
        "Authorization": "Bearer comma_sk_…"
      }
    }
  }
}
```

Replace `comma_sk_…` with a token from **Settings → API tokens → New token** on Comma (or export it as `COMMA_API_TOKEN` where the snippet reads an env var). The default scopes — `reports:write`, `comments:read`, `comments:write` — cover publishing and review.

## LM Studio gotchas

- **Pick a model that does tool calling well.** Small models call `create_report` with truncated HTML; give the model the full document in one message and ask it to publish that.
- Keep tool-call confirmation on for `update_report` and `set_report_sharing` — those change what reviewers see.
- Scope the token to `reports:write` only if the model never needs to read comments.

## What the agent can do

| Capability                | Tools                                                                    |
| ------------------------- | ------------------------------------------------------------------------ |
| Publish a report          | `create_report`, `update_report`, `create_report_from_url`               |
| Find existing reports     | `list_reports`, `search_reports`, `get_report`, `read_report`            |
| Leave / reply to comments | `add_comment`, `reply_to_comment`, `set_comment_status`, `list_comments` |
| Ask for review, share     | `request_review`, `set_report_sharing`, `get_report_signoffs`            |
| Manage assets             | `upload_report_asset`, `list_report_assets`, `delete_report_asset`       |

Your local model picks the tool from the request — there are no LM Studio-specific commands to learn.

## A workflow that sticks

1. Ask your local model to write up the work as a self-contained HTML report and publish it to Comma. It calls `create_report` and returns a link.
2. Send the link. Reviewers open a rendered page and leave comments anchored to the exact line, cell or chart they mean — no account needed to read a public link.
3. Next session, ask your local model to address the comments. It reads the threads with `list_comments`, ships a revision with `update_report` (same URL), replies, and resolves them.

Reports belong to your workspace, not to the agent. A report published from LM Studio can be revised tomorrow from Claude Code or Cursor, and the link people bookmarked keeps working.

## Token shape

- Lives in LM Studio's `mcp.json` on your machine.
- Scoped — you choose which actions it can take when you create it.
- Revocable in one click from **Settings → API tokens**; revocation applies immediately to the REST API, the MCP server and any routines the token created.
- Rate-limited per token.

Details in [API tokens →](/docs/api-tokens) and [Scoped tokens for AI agents →](/agents/scoped-tokens-for-ai-agents).

## Try it

Add the entry, generate a token, restart LM Studio, and ask for a report on something you worked on today. Then leave a comment on it and ask the agent what it sees.

**[Generate a token →](https://commareports.com/settings/tokens)**

### Related

- [Comma MCP server overview](/mcp)
- [Use Comma with Claude Code](/mcp/claude-code)
- [Use Comma with Cursor](/mcp/cursor)
- [Where should my AI agent post its work?](/agents/where-should-my-agent-post)
