npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@lvasko/confluence-rw-mcp

v1.1.0

Published

Read-write MCP server for Confluence with read/write allowlists

Readme

Confluence RW MCP

Windows-friendly stdio MCP server for Confluence with separate read and write allowlists.

Supports:

  • Confluence Cloud with Atlassian account email + API token
  • on-prem / Data Center with bearer PAT auth

Write access is explicit. Read access is the union of:

  • CONFU_ALLOWED_READ_PAGE_IDS
  • CONFU_ALLOWED_WRITE_PAGE_IDS

If a page is write-allowed, it is also automatically read-allowed.

Requirements

  • Windows
  • Node.js
  • PowerShell 7 or Windows PowerShell

If PowerShell 7 is not installed, secret resolution falls back to standard Windows PowerShell automatically through @lvasko/local-secret-store.

Configuration

Environment variables:

  • CONFU_BASE_URL required, for example https://confluence.client.local
  • CONFU_DEPLOYMENT_TYPE preferred, CLOUD or ON_PREM
  • CONFU_PAT_SECRET_NAME preferred for ON_PREM
  • CONFU_PAT optional fallback for ON_PREM
  • CONFU_EMAIL required for CLOUD
  • CONFU_API_TOKEN_SECRET_NAME preferred for CLOUD
  • CONFU_API_TOKEN optional fallback for CLOUD
  • CONFU_CERT_PATH optional CA path for self-signed cert chains
  • CONFU_ALLOWED_READ_PAGE_IDS required unless the write allowlist already provides pages
  • CONFU_ALLOWED_WRITE_PAGE_IDS optional, required only if you want write access
  • CONFU_REQUEST_TIMEOUT_MS optional, default 15000
  • CONFU_MCP_CONFIG optional explicit JSON config path

CONFU_DEPLOYMENT_TYPE is the normal user-facing setting:

  • CLOUD implies basic auth
  • ON_PREM implies bearer auth

CONFU_AUTH_MODE still works as an advanced override, but most users should not need it.

The server does not read config.json from the current working directory by default. A JSON config file is only used when you explicitly set CONFU_MCP_CONFIG.

Example .codex/config.toml for on-prem:

[mcp_servers.confluence-rw]
command = "npx"
args = ["-y", "@lvasko/confluence-rw-mcp@latest"]

[mcp_servers.confluence-rw.env]
CONFU_BASE_URL = "https://confluence.client.local"
CONFU_DEPLOYMENT_TYPE = "ON_PREM"
CONFU_PAT_SECRET_NAME = "confluence-client-pat"
CONFU_CERT_PATH = "C:\\certs\\client-ca.crt"
CONFU_ALLOWED_READ_PAGE_IDS = '["123456","234567"]'
CONFU_ALLOWED_WRITE_PAGE_IDS = '["345678"]'

Example .codex/config.toml for Atlassian Cloud:

[mcp_servers.confluence-cloud-rw]
command = "npx"
args = ["-y", "@lvasko/confluence-rw-mcp@latest"]

[mcp_servers.confluence-cloud-rw.env]
CONFU_BASE_URL = "https://example.atlassian.net"
CONFU_DEPLOYMENT_TYPE = "CLOUD"
CONFU_EMAIL = "[email protected]"
CONFU_API_TOKEN_SECRET_NAME = "confluence-cloud-api-token"
CONFU_ALLOWED_READ_PAGE_IDS = '["123456789"]'
CONFU_ALLOWED_WRITE_PAGE_IDS = '["987654321"]'

Example explicit JSON config:

$env:CONFU_MCP_CONFIG = "C:\path\to\config.json"
{
  "baseUrl": "https://confluence.client.local",
  "deploymentType": "ON_PREM",
  "patSecretName": "confluence-client-pat",
  "certPath": "C:\\certs\\client-ca.crt",
  "readAllowedPageIds": ["123456", "234567"],
  "writeAllowedPageIds": ["345678"]
}

Tools

  • get_confluence_page_by_id
  • get_confluence_page_from_url
  • list_allowed_confluence_pages
  • update_confluence_page_by_id
  • update_confluence_page_from_url
  • list_confluence_page_comments_by_id
  • list_confluence_page_comments_from_url
  • create_confluence_page_comment_by_id
  • create_confluence_page_comment_from_url
  • list_confluence_page_attachments_by_id
  • list_confluence_page_attachments_from_url
  • get_confluence_attachment_by_id
  • get_confluence_attachment_from_url
  • upload_confluence_attachment_by_id
  • upload_confluence_attachment_from_url

Update Behavior

Updates use the current page version and send a new body.storage value with version.number + 1. The page title is preserved unless a new title is provided.

Comments use the same storage-format HTML model as page updates.

Attachment reads return metadata plus full file content as base64. Attachment uploads accept filename, contentBase64, and optional contentType and comment.

Smoke Test

From the monorepo checkout you can validate config parsing with:

npm run --workspace ./packages/confluence-rw-mcp smoke:config

The smoke test verifies:

  • Cloud config infers /wiki and basic auth correctly
  • on-prem config infers bearer auth correctly
  • a stray working-directory config.json is ignored
  • an explicit CONFU_MCP_CONFIG path is honored

Notes

  • The server fails closed if there are no allowed page IDs.
  • URL-based reads and writes only work for the configured Confluence host.
  • For Atlassian Cloud base URLs like https://example.atlassian.net, the server automatically normalizes the API base to https://example.atlassian.net/wiki.
  • Comments and attachments follow the same page allowlist model: read on effective read allowlist pages, write on write allowlist pages.