Confluence MCP Server

Version 2.0.0 - Serverless with Auto-Fetch Configuration

✨ New in v2.0.0:

spaceKey is now optional - automatically fetched from Project Registry via API key!

Available Endpoints

Available Tools (32 total)

Space Operations (2 tools)

Content & Search (3 tools)

Page Management (5 tools)

Document & Attachment Management (6 tools)

Image Upload & Embedding (2 tools)

Folder & Hierarchy (3 tools)

Templates (4 tools)

Labels & Organization (1 tool)

Macros (3 tools)

JIRA Integration (2 tools)

Permissions (1 tool)

Usage Example

Create a page (no spaceKey needed!):

POST /api/mcp
Headers:
  X-API-Key: pk_your_api_key
  Content-Type: application/json

Body:
{
  "tool": "create_page",
  "arguments": {
    "title": "My New Page",
    "content": "<h1>Hello World</h1><p>This page was created without passing spaceKey!</p>"
  }
}

Upload and embed a diagram:

POST /api/mcp
Body:
{
  "tool": "upload_and_embed_document",
  "arguments": {
    "pageId": "264468459847682",
    "file": {
      "name": "diagram.png",
      "data": "base64_encoded_data_here",
      "mimeType": "image/png"
    },
    "width": 800,
    "position": "center"
  }
}

Example Response

{
  "success": true,
  "tool": "search",
  "result": {
    "results": [...],
    "start": 0,
    "limit": 10,
    "size": 10
  }
}

Integration with Project Registry

This Confluence MCP server integrates with the Project Registry to fetch Confluence credentials and configuration automatically:

  1. Register your project with Confluence credentials in the Project Registry
  2. Configure default spaceKey in the registry (e.g., "SA1")
  3. Use the provided API key in the X-API-Key header
  4. The server automatically fetches:
    • Confluence base URL
    • Authentication credentials (email + API token)
    • Default spaceKey (no need to pass in API calls!)
  5. Confluence operations are executed with your credentials

✅ Benefits:

  • Cleaner API calls - no repetitive spaceKey parameters
  • Single source of truth in Project Registry
  • Can still override spaceKey when needed
  • Supports hybrid file uploads: base64 (small files) or Vercel Blob (large files)