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

conf-mcp

v1.2.0

Published

MCP server for Confluence Server/Data Center (REST API)

Readme

Confluence mcp

MCP server for Confluence. Lets an AI assistant (Claude Code, Claude Desktop, ...) read and write your Confluence directly.

Requirements

  • A Confluence account (username + password).
  • Node.js 18+.

Quick start

Use Claude Code CLI:

claude mcp add conf-mcp npx -y conf-mcp@latest \
  --env CONFLUENCE_HOST="https://conf.company.com" \
  --env CONFLUENCE_USERNAME="your_username" \
  --env CONFLUENCE_PASSWORD="your_password"

Or manually add to .claude/settings.json (or claude_desktop_config.json):

{
  "mcpServers": {
    "conf-mcp": {
      "command": "npx",
      "args": ["-y", "conf-mcp@latest"],
      "env": {
        "CONFLUENCE_HOST": "https://conf.company.com",
        "CONFLUENCE_USERNAME": "your_username",
        "CONFLUENCE_PASSWORD": "your_password"
      }
    }
  }
}

Restart Claude Code/Desktop after editing the config.

Environment variables

| Variable | Required | Description | | --------------------- | -------- | ----------------------------------------- | | CONFLUENCE_HOST | yes | Base URL, e.g. https://conf.company.com | | CONFLUENCE_USERNAME | yes | Confluence username | | CONFLUENCE_PASSWORD | yes | Confluence password |

Tools

| Tool | Description | Key parameters | | ------------------- | --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ | | get_page | Get a page by numeric content ID | page_id, body_format (optional), body_start (optional), body_limit (optional) | | get_page_by_title | Get a page by space key + exact title | space_key, title, body_format (optional), body_start (optional), body_limit (optional) | | create_page | Create a new page | space_key, title, body, body_format (optional), parent_page_id (optional) | | update_page | Update a page (full replace, auto-increments version) | page_id, title (optional), body (optional), body_format (optional) | | patch_page | Replace a substring in a page (storage format only) | page_id, old_string, new_string | | delete_page | Move a page to trash (recoverable, not permanently purged) | page_id | | search_pages | Search content using CQL (Confluence Query Language) | cql, limit (optional), start (optional) | | list_spaces | List spaces, or fetch a single space by key | space_key (optional), limit (optional) | | add_comment | Add a comment to a page | page_id, body | | get_comments | Get comments on a page | page_id | | get_user | Resolve a user's display name and profile from userKey/username | key or username |

Notes

  • Page body (create_page/update_page): pass Markdown with body_format='markdown' (auto-converted server-side) or raw Confluence storage format (XHTML) by default. Storage format required for Confluence macros (code, panel, expand, TOC) which Markdown cannot express. Example storage: <p>Content</p>, <ul><li>Item 1</li></ul>.
  • Comment body (add_comment): must be Confluence storage format (XHTML) only.
  • update_page is a full replace — to change only the title, omit body to keep the existing content (and vice versa).
  • patch_page replaces one exact substring in storage format (XHTML) without resending the full page body, useful for targeted edits to large pages where update_page is impractical. old_string must match exactly once; errors if found 0 or multiple times.
  • delete_page only moves the page to trash; you can restore it from the Confluence UI.
  • search_pages uses CQL syntax, e.g. type=page AND space=ENG AND title~"deploy".
  • For large pages, get_page/get_page_by_title return at most 40000 characters of body by default (to avoid exceeding tool-output token limits). Control with body_format: storage (default, XHTML) | view (rendered HTML) | none (metadata only). Page through large bodies with body_start + body_limit; check the truncated flag in the result.
  • All logs go to stderr; stdout is reserved for the MCP protocol.

Example prompts

  • "Find pages in space ENG whose title contains 'deploy'"
  • "Create a new page in space ENG titled 'Release notes v2.0' with content ..."
  • "Update page 123456, change the title to 'Release notes v2.1'"
  • "Add a comment to page 123456: 'Review done'"

Troubleshooting

  • 401/403: recheck CONFLUENCE_USERNAME/CONFLUENCE_PASSWORD and whether the account can access the space.
  • Connection/timeout: verify CONFLUENCE_HOST format (starts with https://, no trailing /), and whether VPN/internal network is required.
  • No error logs: server logs go to stderr — check the MCP client (Claude Code/Desktop) output, not stdout.

Alternatives

Run directly from GitHub without npm:

"args": ["-y", "github:namcpgem/gem-conf-mcp"]

Or point at a local build:

{
  "command": "node",
  "args": ["/path/to/conf-mcp/dist/index.js"],
  "env": { "...": "..." }
}

Development

pnpm install
cp .env.example .env   # edit with your credentials
pnpm build             # bundle to dist/index.js via esbuild
pnpm lint              # biome check + tsc
pnpm release           # release-it: bumps version, commits, tags, pushes (runs lint + build first, no pre-commit needed)
pnpm archive           # package release/conf-mcp-v<version>.zip

Support

Questions or issues? Email [email protected].

If this project helps you, consider buying me a coffee:


Created by NamCP