> For the complete documentation index, see [llms.txt](https://docs.realmacsoftware.com/elements-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmacsoftware.com/elements-docs/using-elements/elements-ai/elements-mcp-server.md).

# Elements MCP Server

{% hint style="danger" %}
This feature is in development and is **not yet available in public builds of Elements.**
{% endhint %}

Elements has a built-in MCP server with a range of tools that LLMs can use.

At the time of writing (July 2026), the following Mac applications support MCP and can connect to the Elements MCP server:

* Claude Code (Anthropic)
* Codex (OpenAI)
* Cursor (Anysphere, Inc)
* Gemini (Google, only available in the US on the Ultra plan)
* LM Studio

### Elements MCP Server Preferences

To enable the MCP server in Elements, open Elements Settings and select the **MCP Server** tab. Switch on the MCP server, then connect your preferred client.

<figure><img src="/files/QhLMM9bneWkjoYoIB3zy" alt="Elements MCP Server preferences with the server enabled and its local connection URL"><figcaption></figcaption></figure>

### How to connect LM Studio to the Elements MCP server

LM Studio requires you to configure the MCP connection manually. The JSON configuration should look like the example below. Ensure the port number `9712` matches the port shown in the Elements MCP Server settings.

```
{
  "mcpServers": {
    "elements": {
      "url": "http://localhost:9712/mcp"
    }
  }
}
```

### FAQ:

<details>

<summary>Why does Claude Code drop the connection to the Elements MCP server?</summary>

As this is fairly new and evolving technology, we’re not entirely sure why Claude is doing this. However, in our testing connecting Cursor, Codex or any other client to the Elements MCP is rock solid with no dropout issues.

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.realmacsoftware.com/elements-docs/using-elements/elements-ai/elements-mcp-server.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
