# Lenses MCP Server settings for Intellij AI

**URL:** <https://ask.lenses.io/t/lenses-mcp-server-settings-for-intellij-ai/442>\
**Category:** Lenses\
**Created:** [October 16, 2025, 10:16pm UTC](https://ask.lenses.io/t/lenses-mcp-server-settings-for-intellij-ai/442 "2025-10-16T22:16:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![james1985](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@james1985](https://ask.lenses.io/u/james1985)\
**Post date:** [October 16, 2025, 10:16pm UTC](https://ask.lenses.io/t/lenses-mcp-server-settings-for-intellij-ai/442/1 "2025-10-16T22:16:18Z")

</div>

Anyone have an example mcpServers JSON config to setup Intellij AI to Lenses MCP Server?

---

<div class="post-metadata">

**Author:** ![guillaume.ayme](https://dub1.discourse-cdn.com/flex017/user_avatar/ask.lenses.io/guillaume.ayme/32/64_2.png) [@guillaume.ayme](https://ask.lenses.io/u/guillaume.ayme)\
**Post date:** [October 16, 2025, 10:17pm UTC](https://ask.lenses.io/t/lenses-mcp-server-settings-for-intellij-ai/442/2 "2025-10-16T22:17:40Z")

</div>

I use this against my Lenses Community Edition. I followed the server installation process in [GitHub - lensesio/lenses-mcp: MCP server for Lenses](https://github.com/lensesio/lenses-mcp)

….and then use this in Intellij:

```auto
{
  "mcpServers": {
    "lenses": {
      "command": "uv",
      "args": [
        "run",
        "--project",
        "/Users/me/lensesMCP/lenses-mcp/",
        "--with",
        "fastmcp",
        "fastmcp",
        "run",
        "/Users/me/lensesMCP/lenses-mcp/src/lenses_mcp/server.py"
      ],
      "env": {
        "LENSES_API_KEY": "sa_key_orujjigsMWrrgXUC_DfEvKpVvHzfYq9PCEWTcPt4CkHuNuyJl"
      }
    }
  }
}

```
