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

# LM Studio

> Add PostChamp to LM Studio and use it with a local model that can call tools.

Add PostChamp to LM Studio and use it with a local model that can call tools. The connection URL is the same for every client:

```text
https://api.postchampai.com/api/v1/mcp
```

> [!NOTE]
>
> LM Studio runs the model on your machine, but anything the model sends to PostChamp leaves your machine, like any other connection to a website.

> [!NOTE]
>
> The vendor page confirms remote servers in `mcp.json`. It does not describe the install link or the sign-in, so those steps could not be confirmed.

> [!NOTE]
>
> These steps follow the standard remote MCP format. LM Studio changes its menus often, so check the [vendor documentation](https://lmstudio.ai/docs/app/mcp) if a label differs.

## Before you start

* LM Studio 0.3.17 or newer.
* A model that calls tools well. Small models often skip tools.
* A PostChamp account on a plan that includes assistants, with the owner or admin role in the workspace you want to share. See [Authentication](/mcp/authentication.md).

## Connect LM Studio

> [card] [Add to LM Studio](lmstudio://add_mcp?name=postchamp\&config=eyJ1cmwiOiJodHRwczovL2FwaS5wb3N0Y2hhbXBhaS5jb20vYXBpL3YxL21jcCJ9)
>
> One-click install link. It opens LM Studio with the server filled in.

**Step 1**

Choose **Add to LM Studio** above and confirm.

**Step 2**

Or open the **Program** tab in the right sidebar, choose **Install**, then **Edit mcp.json**, and add the entry below between `"mcpServers": {` and its closing brace.

**Step 3**

The first time a model uses PostChamp, a browser sign-in opens. Sign in to PostChamp, choose the workspaces to share and approve.

**Step 4**

Load a model that supports tool calling, then ask for something.

## Configuration file

Add this to `LM Studio mcp.json`:

```json
{
  "mcpServers": {
    "postchamp": {
      "url": "https://api.postchampai.com/api/v1/mcp"
    }
  }
}
```

## Check the connection

Ask:

```text
Use PostChamp to list my workspaces.
```

This reads your workspaces, costs nothing and changes nothing. Then try one of these:

* Write a LinkedIn post about what I learned from my last client project, in my voice.
* Plan next week: three posts, one on each of my main topics. Show me the plan before you schedule anything.
* How did my posts do over the last 30 days? What worked best?

## Disconnect

* Remove the entry from `mcp.json`.
* In PostChamp, open Settings and choose Assistants to disconnect it, so the sign-in is revoked.

## Troubleshooting

> [accordion] The model never calls PostChamp.
>
> Use a model that supports tool calling. Small models often ignore tools.

> [accordion] The Add to LM Studio link does nothing.
>
> Use the `mcp.json` entry instead.

> [accordion] The browser sign-in says I cannot connect.
>
> Only owners and admins of a workspace can connect an assistant to it, and the plan must include assistants. Sign in with an account that has that role. Check the account in Settings, Members.

## FAQ

> [accordion] Does the model run locally?
>
> Yes. The model runs in LM Studio on your machine. PostChamp does its own AI work, such as writing a post, on our side and charges credits for it.

## Related

> [card] [Authentication](/mcp/authentication.md)
>
> How sign-in, consent and revocation work.

> [card] [Tool reference](/mcp/tools/index.md)
>
> Every tool the assistant can call.
