Skip to main content
Glama
Stillfrozen

Confluence MCP Server — Cursor

by Stillfrozen

title: "Confluence MCP Server — Cursor" tags:

  • project/workspace

  • subproject/tools

  • type/guide

  • area/tech


Confluence MCP Server — Cursor

A local MCP server for Cursor: the agent searches and reads Confluence Server / Data Center pages using a Personal Access Token.

Page writing is not implemented. Confluence Cloud (a different URL and Basic-auth) is not supported by this connector.

Repository: https://github.com/Stillfrozen/confluence-cursor-connector

Russian step-by-step installation: docs/INSTALL.ru.md

What it can do

Tool

Purpose

get-current-user

Authorization check: display name / username

list-spaces

Spaces available to the current user

search-pages

Search by CQL, e.g. title~"паспорт" AND type=page

get-page

Page by page_id or by space_key + exact title. Body — body.storage (HTML/storage)

The token lives only in ~/.cursor/mcp.json. It does not end up in git.

Related MCP server: Confluence Node MCP Server

Quick start

git clone https://github.com/Stillfrozen/confluence-cursor-connector.git
cd confluence-cursor-connector
npm install
npm run build

PAT: in Confluence, open your profile → Settings → Personal Access Tokens → create a token.

In ~/.cursor/mcp.json:

{
  "mcpServers": {
    "confluence": {
      "command": "node",
      "args": ["/absolute/path/to/confluence-cursor-connector/dist/stdio-entry.js"],
      "env": {
        "CONFLUENCE_BASE_URL": "https://wiki.example.com",
        "CONFLUENCE_PAT": "your-personal-access-token"
      }
    }
  }
}

CONFLUENCE_BASE_URL — the wiki root without the /rest/api suffix and without a trailing slash. For compatibility, the variable name PAT is also accepted.

Reload MCP: Cursor → Settings → MCP. The confluence indicator should turn green.

Check in chat: “Show my spaces in Confluence” or “Read page 123456”.

Optionally copy the skill:

mkdir -p ~/.cursor/skills/confluence
cp skills/confluence/SKILL.md ~/.cursor/skills/confluence/SKILL.md

Limitations

  • Read-only. You cannot create or edit a page via MCP.

  • API — Confluence Server / Data Center (/rest/api/..., Authorization: Bearer).

  • get-page returns storage HTML, not Markdown. The agent must strip ac: macros itself.

  • CQL is limited by PAT permissions: other users' spaces are not visible.

Development

npm install
npm run build
npm run start:stdio

Smoke test of a live instance (reads confluence.env from ~/.cursor/mcp.json):

node scripts/smoke-test.mjs

License

MIT

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers