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

@tocharianou/confluence-mcp

v1.0.0

Published

Confluence MCP Server – page search (CQL), read, create, update, comment, and space/page listing for security knowledge base management

Downloads

140

Readme

Confluence MCP Server

npm version License: Apache-2.0 Node.js >= 18

A Model Context Protocol (MCP) server for Confluence — CQL-powered page search, read, create, update, comment, and space/page listing. Purpose-built for security knowledge base management and IR runbook access during investigations.

Quick Start

Claude Desktop (stdio)

Add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "confluence": {
      "command": "npx",
      "args": ["-y", "@tocharianou/confluence-mcp"],
      "env": {
        "CONFLUENCE_HOST": "https://yourorg.atlassian.net",
        "CONFLUENCE_EMAIL": "[email protected]",
        "CONFLUENCE_TOKEN": "<your-api-token>"
      }
    }
  }
}

Get your Atlassian API token at id.atlassian.com/manage-profile/security/api-tokens.

HTTP / Streamable mode

MCP_TRANSPORT=http MCP_HTTP_PORT=3003 CONFLUENCE_HOST=https://yourorg.atlassian.net [email protected] CONFLUENCE_TOKEN=<token> npx @tocharianou/confluence-mcp

Then point your MCP client at http://localhost:3003/mcp.

Features

  • CQL search — full-text search across pages and blog posts with space filtering
  • Page read/write — read runbooks, create post-mortems, update IR documentation
  • Comment management — add investigation notes directly to Confluence pages
  • Space discovery — list and explore all accessible Confluence spaces
  • Token limiting — built-in MAX_TOKEN_CALL guard prevents context overflow

Configuration

| Environment variable | Required | Description | |---|---|---| | CONFLUENCE_HOST | ✓ | Confluence Cloud: https://yourorg.atlassian.net / Server: https://wiki.company.com | | CONFLUENCE_EMAIL | ✓* | Atlassian account email (Cloud only; leave empty for Server/DC) | | CONFLUENCE_TOKEN | ✓ | API token (Cloud) or Personal Access Token (Server/Data Center) | | CONFLUENCE_API_VERSION | – | v2 for Cloud (default), v1 for Server/Data Center | | CONFLUENCE_VERIFY_SSL | – | true/false (default: true) | | MAX_TOKEN_CALL | – | Token limit per tool response (default: 20000) | | MCP_TRANSPORT | – | stdio (default) or http | | MCP_HTTP_PORT | – | HTTP server port (default: 3003) | | MCP_HTTP_HOST | – | HTTP server host (default: localhost) |

* CONFLUENCE_EMAIL is required for Confluence Cloud. Leave empty for Confluence Server / Data Center (use PAT only).

Available Tools

| Tool | Description | |------|-------------| | confluence_health_check | Test connection, verify account info and accessible space count | | search_content | CQL full-text search across pages and blog posts with excerpt preview | | get_page | Read full content of a specific page by ID or title | | create_page | Create a new page in a space (post-mortems, IR notes, findings) | | update_page | Update an existing page's content or title | | add_comment | Add an inline comment to a page to record investigation notes | | list_spaces | List all accessible Confluence spaces with keys and descriptions | | list_pages_in_space | List pages in a specific space, optionally filtered by parent page |

Example Queries

  • "Search Confluence for our IR playbook for ransomware incidents"
  • "Find the runbook for AWS key compromise in the SEC space"
  • "Get the full content of the page 'Incident Response Procedures'"
  • "Create a post-mortem page in the SEC space summarizing my investigation findings"
  • "Add a comment to the SIEM alerting page with the false positive pattern I found"

Debugging

Use the MCP Inspector to test and debug:

npm run inspector

Server logs are written to stderr so they do not interfere with the MCP JSON-RPC stream on stdout.

Troubleshooting

| Symptom | Likely cause | |---------|-------------| | 401 Unauthorized | Invalid CONFLUENCE_TOKEN or wrong CONFLUENCE_EMAIL | | 403 Forbidden | Insufficient permissions on the space or page | | 404 Not Found | Page ID or space key does not exist | | ECONNREFUSED | Wrong CONFLUENCE_HOST or Confluence server not reachable | | SSL errors | Set CONFLUENCE_VERIFY_SSL=false for self-signed certs (Server/DC only) | | Token limit exceeded | Set excerpt_only: true or use break_token_rule: true |

Development

git clone https://github.com/TocharianOU/confluence-mcp.git
cd confluence-mcp
npm install --ignore-scripts
npm run build
cp .env.example .env   # fill in your credentials
npm start

Release

See RELEASE.md for the full release process.

License

Apache 2.0 — Copyright © 2024 TocharianOU Contributors