Logo Atlassian Confluence

Atlassian Confluence

Cộng đồng
aashari

Node.js/TypeScript MCP server for Atlassian Confluence. Provides tools enabling AI systems (LLMs) to list/get spaces & pages (content formatted as Markdown) and search via CQL. Connects AI seamlessly to Confluence knowledge bases using the standard MCP interface.

Nhà phát hànhaashari
Kho mãmcp-server-atlassian-confluence
Ngôn ngữTypeScript
Bản fork
23
Sao
61
Công cụ có sẵn
7
Phương thức truyền tảistdio, streamable-http
Danh mục
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Atlassian Confluence cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 7 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    61 sao và 23 bản fork từ kho mã được liên kết.

Connect AI to Your Confluence Knowledge Base

Transform how you access and interact with your team's knowledge by connecting Claude, Cursor AI, and other AI assistants directly to your Confluence spaces, pages, and documentation. Get instant answers from your knowledge base, search across all your spaces, and streamline your documentation workflow.

NPM Version

What You Can Do

  • Ask AI about your documentation: "What's our API authentication process?"
  • Search across all spaces: "Find all pages about security best practices"
  • Get instant answers: "Show me the latest release notes from the Product space"
  • Access team knowledge: "What are our HR policies for remote work?"
  • Review page comments: "Show me the discussion on the architecture document"
  • Create and update content: "Create a new page in the DEV space"

Perfect For

  • Developers who need quick access to technical documentation and API guides
  • Product Managers searching for requirements, specs, and project updates
  • HR Teams accessing policy documents and employee resources quickly
  • Support Teams finding troubleshooting guides and knowledge base articles
  • Anyone who wants to interact with Confluence using natural language

Quick Start

Get up and running in 2 minutes:

1. Get Your Confluence Credentials

Generate a Confluence API Token:

  1. Go to Atlassian API Tokens
  2. Click Create API token
  3. Give it a name like "AI Assistant"
  4. Copy the generated token immediately (you won't see it again!)

2. Try It Instantly

bash
# Set your credentials
export ATLASSIAN_SITE_NAME="your-company"  # for your-company.atlassian.net
export ATLASSIAN_USER_EMAIL="your.email@company.com"
export ATLASSIAN_API_TOKEN="your_api_token"

# List your Confluence spaces (TOON format by default)
npx -y @aashari/mcp-server-atlassian-confluence get --path "/wiki/api/v2/spaces"

# Get details about a specific space with field filtering
npx -y @aashari/mcp-server-atlassian-confluence get \
  --path "/wiki/api/v2/spaces/123456" \
  --jq "{id: id, key: key, name: name, type: type}"

# Get a page with JMESPath filtering
npx -y @aashari/mcp-server-atlassian-confluence get \
  --path "/wiki/api/v2/pages/789" \
  --jq "{id: id, title: title, status: status}"

# Search for pages (using CQL)
npx -y @aashari/mcp-server-atlassian-confluence get \
  --path "/wiki/rest/api/search" \
  --query-params '{"cql": "type=page AND space=DEV"}'

Connect to AI Assistants

For Claude Desktop Users

Add this to your Claude configuration file (~/.claude/claude_desktop_config.json):

json
{
  "mcpServers": {
    "confluence": {
      "command": "npx",
      "args": ["-y", "@aashari/mcp-server-atlassian-confluence"],
      "env": {
        "ATLASSIAN_SITE_NAME": "your-company",
        "ATLASSIAN_USER_EMAIL": "your.email@company.com",
        "ATLASSIAN_API_TOKEN": "your_api_token"
      }
    }
  }
}

Restart Claude Desktop, and you'll see the confluence server in the status bar.

For Other AI Assistants

Most AI assistants support MCP (Cursor AI, Continue.dev, and others). Install the server globally:

bash
npm install -g @aashari/mcp-server-atlassian-confluence

Then configure your AI assistant to use the MCP server with STDIO transport. The binary is available as mcp-atlassian-confluence after global installation.

Alternative: Configuration File

Create ~/.mcp/configs.json for system-wide configuration:

json
{
  "confluence": {
    "environments": {
      "ATLASSIAN_SITE_NAME": "your-company",
      "ATLASSIAN_USER_EMAIL": "your.email@company.com",
      "ATLASSIAN_API_TOKEN": "your_api_token"
    }
  }
}

Alternative config keys: The system also accepts "atlassian-confluence", "@aashari/mcp-server-atlassian-confluence", or "mcp-server-atlassian-confluence" instead of "confluence".

Using Environment Variables

You can also configure credentials using environment variables or a .env file:

bash
# Create a .env file in your project directory
cat > .env << EOF
ATLASSIAN_SITE_NAME=your-company
ATLASSIAN_USER_EMAIL=your.email@company.com
ATLASSIAN_API_TOKEN=your_api_token
DEBUG=false
EOF

The server will automatically load these values from:

  1. Environment variables
  2. .env file in the current directory
  3. ~/.mcp/configs.json (as shown above)

Available Tools

This MCP server provides 5 generic tools that can access any Confluence API endpoint:

ToolDescription
conf_getGET any Confluence API endpoint (read data)
conf_postPOST to any endpoint (create resources)
conf_putPUT to any endpoint (replace resources)
conf_patchPATCH to any endpoint (partial updates)
conf_deleteDELETE from any endpoint (remove resources)

Tool Parameters

All tools share these common parameters:

  • path (required): The API endpoint path (e.g., /wiki/api/v2/spaces)
  • queryParams (optional): Query parameters as key-value pairs (e.g., {"limit": "25", "space-id": "123"})
  • jq (optional): JMESPath expression to filter/transform the response (e.g., results[*].{id: id, title: title})
  • outputFormat (optional): Output format - "toon" (default, 30-60% fewer tokens) or "json"

Tools that accept a request body (conf_post, conf_put, conf_patch):

  • body (required): Request body as a JSON object

Common API Paths

Spaces:

  • /wiki/api/v2/spaces - List all spaces
  • /wiki/api/v2/spaces/{id} - Get space details

Pages:

  • /wiki/api/v2/pages - List pages (use space-id query param to filter)
  • /wiki/api/v2/pages/{id} - Get page details
  • /wiki/api/v2/pages/{id}/body - Get page body (use body-format param)
  • /wiki/api/v2/pages/{id}/children - Get child pages
  • /wiki/api/v2/pages/{id}/labels - Get page labels

Comments:

  • /wiki/api/v2/pages/{id}/footer-comments - List/add footer comments
  • /wiki/api/v2/pages/{id}/inline-comments - List/add inline comments
  • /wiki/api/v2/footer-comments/{comment-id} - Get/update/delete comment

Blog Posts:

  • /wiki/api/v2/blogposts - List blog posts
  • /wiki/api/v2/blogposts/{id} - Get blog post

Search:

  • /wiki/rest/api/search - Search content (use cql query param)

TOON Output Format

What is TOON? TOON (Token-Oriented Object Notation) is a format optimized for LLM token efficiency, reducing token costs by 30-60% compared to JSON. It's the default output format for all tools.

Benefits:

  • Tabular arrays use fewer tokens than JSON arrays
  • Minimal syntax overhead (no quotes, brackets, commas where unnecessary)
  • Still human-readable and parseable

When to use JSON instead:

  • When you need standard JSON for other tools
  • When debugging or manual inspection is needed

Example comparison:

json
// JSON format (verbose)
{"results": [{"id": "123", "title": "My Page"}, {"id": "456", "title": "Other Page"}]}

// TOON format (efficient)
results:
  - id: 123
    title: My Page
  - id: 456
    title: Other Page

To use JSON instead of TOON, set outputFormat: "json" in your request.

JMESPath Filtering

All tools support optional JMESPath (jq) filtering to extract specific data and reduce token costs:

bash
# Get just space names and keys
npx -y @aashari/mcp-server-atlassian-confluence get \
  --path "/wiki/api/v2/spaces" \
  --jq "results[].{id: id, key: key, name: name}"

# Get page title and status
npx -y @aashari/mcp-server-atlassian-confluence get \
  --path "/wiki/api/v2/pages/123456" \
  --jq "{id: id, title: title, status: status}"

IMPORTANT: Always use the jq parameter to filter responses to only the fields you need. Unfiltered responses can be very large and expensive in token costs.

JMESPath Syntax Reference:

  • Official docs: jmespath.org
  • Common patterns:
    • results[*] - All items in results array
    • results[0] - First item only
    • results[*].id - Just IDs from all items
    • results[*].{id: id, title: title} - Create objects with selected fields
    • results[?status=='current'] - Filter by condition

Real-World Examples

Explore Your Knowledge Base

Ask your AI assistant:

  • "List all the spaces in our Confluence"
  • "Show me details about the Engineering space"
  • "What pages are in our Product space?"
  • "Find the latest pages in the Marketing space"

Search and Find Information

Ask your AI assistant:

  • "Search for pages about API authentication"
  • "Find all documentation with 'security' in the title"
  • "Show me pages labeled with 'getting-started'"
  • "Search for content in the DEV space about deployment"

Access Specific Content

Ask your AI assistant:

  • "Get the content of the API Authentication Guide page"
  • "Show me the onboarding checklist document"
  • "What's in our security policies page?"
  • "Display the latest release notes"

Create and Update Content

Ask your AI assistant:

  • "Create a new page in the DEV space titled 'API Guide'"
  • "Add a comment to the architecture document"
  • "Update the page content with the new release info"

CLI Commands

The CLI mirrors the MCP tools for direct terminal access. All commands support the same parameters as the tools.

Available Commands

  • get - GET any Confluence endpoint
  • post - POST to any endpoint
  • put - PUT to any endpoint
  • patch - PATCH any endpoint
  • delete - DELETE from any endpoint

CLI Parameters

All commands:

  • -p, --path <path> (required) - API endpoint path
  • -q, --query-params <json> (optional) - Query parameters as JSON
  • --jq <expression> (optional) - JMESPath filter expression
  • -o, --output-format <format> (optional) - Output format: toon (default) or json

Commands with body (post, put, patch):

  • -b, --body <json> (required) - Request body as JSON

Examples

bash
# GET request
npx -y @aashari/mcp-server-atlassian-confluence get --path "/wiki/api/v2/spaces"

# GET with query parameters and JMESPath filter
npx -y @aashari/mcp-server-atlassian-confluence get \
  --path "/wiki/api/v2/pages" \
  --query-params '{"space-id": "123456", "limit": "10"}' \
  --jq "results[*].{id: id, title: title}"

# GET with JSON output format
npx -y @aashari/mcp-server-atlassian-confluence get \
  --path "/wiki/api/v2/spaces" \
  --output-format json

# POST request (create a page)
npx -y @aashari/mcp-server-atlassian-confluence post \
  --path "/wiki/api/v2/pages" \
  --body '{"spaceId": "123456", "status": "current", "title": "New Page", "body": {"representation": "storage", "value": "<p>Content here</p>"}}'

# POST request (add a comment)
npx -y @aashari/mcp-server-atlassian-confluence post \
  --path "/wiki/api/v2/pages/789/footer-comments" \
  --body '{"body": {"representation": "storage", "value": "<p>My comment</p>"}}'

# PUT request (update page - requires version increment)
npx -y @aashari/mcp-server-atlassian-confluence put \
  --path "/wiki/api/v2/pages/789" \
  --body '{"id": "789", "status": "current", "title": "Updated Title", "spaceId": "123456", "body": {"representation": "storage", "value": "<p>Updated content</p>"}, "version": {"number": 2}}'

# PATCH request (partial update)
npx -y @aashari/mcp-server-atlassian-confluence patch \
  --path "/wiki/api/v2/spaces/123456" \
  --body '{"name": "New Space Name"}'

# DELETE request
npx -y @aashari/mcp-server-atlassian-confluence delete \
  --path "/wiki/api/v2/pages/789"

Response Handling

Large Response Truncation

When API responses exceed approximately 40,000 characters (~10,000 tokens), the server automatically truncates the response to stay within token limits. When this happens:

  1. You'll see a truncation notice at the end of the response showing:

    • How much of the original response is shown
    • The original response size
    • Guidance on accessing the full data
  2. The full raw response is saved to a temporary file in /tmp/mcp/ (path provided in the truncation notice)

  3. Best practices to avoid truncation:

    • Always use the jq parameter to filter responses to only needed fields
    • Use limit query parameter to restrict result counts (e.g., {"limit": "5"})
    • Request specific resources by ID rather than listing all
    • Use targeted CQL queries for searches

Example of efficient filtering:

bash
# Instead of getting all space data (can be huge):
npx -y @aashari/mcp-server-atlassian-confluence get \
  --path "/wiki/api/v2/spaces"

# Get only the fields you need:
npx -y @aashari/mcp-server-atlassian-confluence get \
  --path "/wiki/api/v2/spaces" \
  --query-params '{"limit": "10"}' \
  --jq "results[*].{id: id, key: key, name: name}"

Debug Logging

Enable debug logging to see detailed request/response information:

bash
# Set DEBUG environment variable
export DEBUG=true

# For MCP mode
DEBUG=true npx -y @aashari/mcp-server-atlassian-confluence

# For CLI mode
DEBUG=true npx -y @aashari/mcp-server-atlassian-confluence get --path "/wiki/api/v2/spaces"

Debug logs are written to: ~/.mcp/data/@aashari-mcp-server-atlassian-confluence.[session-id].log

Testing & Development

Using MCP Inspector

The MCP Inspector provides a visual interface for testing tools:

bash
# Install the server globally
npm install -g @aashari/mcp-server-atlassian-confluence

# Run with MCP Inspector
npx @modelcontextprotocol/inspector node $(which mcp-atlassian-confluence)

Or use the built-in development command if you've cloned the repository:

bash
npm run mcp:inspect

This starts the server in HTTP mode and opens the inspector UI in your browser.

HTTP Mode for Testing

You can run the server in HTTP mode to test with curl or other HTTP clients:

bash
# Start server in HTTP mode
TRANSPORT_MODE=http npx -y @aashari/mcp-server-atlassian-confluence

The server will listen on http://localhost:3000/mcp by default. You can change the port:

bash
PORT=8080 TRANSPORT_MODE=http npx -y @aashari/mcp-server-atlassian-confluence

Testing with curl:

bash
# Initialize session
curl -X POST http://localhost:3000/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {"protocolVersion": "2024-11-05", "clientInfo": {"name": "curl-test", "version": "1.0.0"}, "capabilities": {}}}'

# List available tools
curl -X POST http://localhost:3000/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc": "2.0", "id": 2, "method": "tools/list"}'

# Call a tool
curl -X POST http://localhost:3000/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc": "2.0", "id": 3, "method": "tools/call", "params": {"name": "conf_get", "arguments": {"path": "/wiki/api/v2/spaces", "queryParams": {"limit": "5"}}}}'

The response comes as Server-Sent Events (SSE) with format:

event: message
data: {"jsonrpc": "2.0", "id": 1, "result": {...}}

Troubleshooting

"Authentication failed" or "403 Forbidden"

  1. Check your API Token permissions:

  2. Verify your site name format:

    • If your Confluence URL is https://mycompany.atlassian.net
    • Your site name should be just mycompany
  3. Test your credentials:

    bash
    npx -y @aashari/mcp-server-atlassian-confluence get --path "/wiki/api/v2/spaces?limit=1"

"Resource not found" or "404"

  1. Check the API path:

    • Paths are case-sensitive
    • Use numeric IDs for spaces and pages (not keys)
    • Verify the resource exists in your browser
  2. Verify access permissions:

    • Make sure you have access to the space/page in your browser
    • Some content may be restricted to certain users

"No results found" when searching

  1. Try different search terms:

    • Use CQL syntax for advanced searches
    • Try broader search criteria
  2. Check CQL syntax:

    • Validate your CQL in Confluence's advanced search first

Claude Desktop Integration Issues

  1. Restart Claude Desktop after updating the config file
  2. Verify config file location:
    • macOS: ~/.claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json

Getting Help

If you're still having issues:

  1. Run a simple test command to verify everything works
  2. Check the GitHub Issues for similar problems
  3. Create a new issue with your error message and setup details

Frequently Asked Questions

What permissions do I need?

Your Atlassian account needs:

  • Access to Confluence with the appropriate permissions for the spaces you want to query
  • API token with appropriate permissions (automatically granted when you create one)

Can I use this with Confluence Server (on-premise)?

Currently, this tool only supports Confluence Cloud. Confluence Server/Data Center support may be added in future versions.

How do I find my site name?

Your site name is the first part of your Confluence URL:

  • URL: https://mycompany.atlassian.net -> Site name: mycompany
  • URL: https://acme-corp.atlassian.net -> Site name: acme-corp

What AI assistants does this work with?

Any AI assistant that supports the Model Context Protocol (MCP):

  • Claude Desktop
  • Cursor AI
  • Continue.dev
  • Many others

Is my data secure?

Yes! This tool:

  • Runs entirely on your local machine
  • Uses your own Confluence credentials
  • Never sends your data to third parties
  • Only accesses what you give it permission to access

Can I search across all my spaces at once?

Yes! Use CQL queries for cross-space searches. For example:

bash
npx -y @aashari/mcp-server-atlassian-confluence get \
  --path "/wiki/rest/api/search" \
  --query-params '{"cql": "type=page AND text~\"API documentation\""}'

Migration from v2.x

Version 3.0 replaces 8+ specific tools with 5 generic HTTP method tools. If you're upgrading from v2.x:

Before (v2.x):

conf_ls_spaces, conf_get_space, conf_ls_pages, conf_get_page,
conf_search, conf_ls_comments, conf_add_comment, ...

After (v3.0):

conf_get, conf_post, conf_put, conf_patch, conf_delete

Migration examples:

  • conf_ls_spaces -> conf_get with path /wiki/api/v2/spaces
  • conf_get_space -> conf_get with path /wiki/api/v2/spaces/{id}
  • conf_ls_pages -> conf_get with path /wiki/api/v2/pages?space-id={id}
  • conf_get_page -> conf_get with path /wiki/api/v2/pages/{id}
  • conf_search -> conf_get with path /wiki/rest/api/search?cql=...
  • conf_add_comment -> conf_post with path /wiki/api/v2/pages/{id}/footer-comments

Technical Details

Requirements

  • Node.js: 18.0.0 or higher
  • MCP SDK: 1.23.0 (uses modern registerTool API)
  • Confluence: Cloud only (Server/Data Center not supported)

Architecture

This server follows a 5-layer architecture:

  1. Tools Layer (src/tools/) - MCP tool definitions with Zod validation
  2. CLI Layer (src/cli/) - Commander-based CLI for direct testing
  3. Controllers Layer (src/controllers/) - Business logic, JMESPath filtering, output formatting
  4. Services Layer (src/services/) - Confluence API communication
  5. Utils Layer (src/utils/) - Shared utilities (logger, config, formatters, TOON encoder)

Features

  • Generic HTTP method tools - Access any Confluence API endpoint
  • TOON output format - 30-60% token reduction vs JSON
  • JMESPath filtering - Extract only needed data
  • Response truncation - Automatic handling of large responses
  • Raw response logging - Full responses saved to /tmp/mcp/
  • Dual transport - STDIO (for Claude Desktop) and HTTP (for web integrations)
  • Debug logging - Comprehensive logging for troubleshooting

Version History

v3.2.1 (Current)

  • Add raw response logging with truncation for large API responses
  • Improve dependency compatibility

v3.2.0

  • Modernize MCP SDK to v1.23.0 with registerTool API

v3.1.0

  • Add TOON output format for token-efficient LLM responses

v3.0.0 (Breaking change)

  • Replace 8+ domain-specific tools with 5 generic HTTP method tools
  • Add JMESPath filtering support
  • Full Confluence API access via generic methods

See CHANGELOG.md for complete version history.

Support

Need help? Here's how to get assistance:

  1. Check the troubleshooting section above - most common issues are covered there
  2. Visit our GitHub repository for documentation and examples: github.com/aashari/mcp-server-atlassian-confluence
  3. Report issues at GitHub Issues
  4. Start a discussion for feature requests or general questions

Made with care for teams who want to bring AI into their knowledge management workflow.

Cài đặt

TypingMind
Yêu cầu:

Node.js 18+

{
  "mcpServers": {
    "confluence": {
      "command": "npx",
      "args": [
        "-y",
        "@aashari/mcp-server-atlassian-confluence"
      ],
      "env": {
        "ATLASSIAN_SITE_NAME": "your-company",
        "ATLASSIAN_USER_EMAIL": "your.email@company.com",
        "ATLASSIAN_API_TOKEN": "your_api_token"
      }
    }
  }
}

Công cụ có sẵn

  • conf_ls_spaces

    Lists Confluence spaces accessible to the user, with optional filtering by type (global, personal), or status (current, archived).

    • Use this to discover spaces and find their keys needed for other tools.
    • Supports pagination via limit and cursor parameters. Pagination information, including next cursor value, is included directly in the returned text content.
    • Note: Filtering by type alone does not filter by status; the status parameter defaults to returning spaces with all statuses (current and archived) unless explicitly set to current or archived.
    • Returns a formatted list of spaces including ID, key, name, type, status, and URL.
    • Default sort is by name descending.
  • conf_get_space

    Retrieves comprehensive details for a specific Confluence space identified by spaceKey. Returns the space's description, homepage ID, type, status, theme, permissions, and other metadata as formatted Markdown. Use this after finding a space key via conf_ls_spaces to get the full space context.

  • conf_ls_pages

    Lists pages within specified spaces (by spaceId or spaceKey) or globally. Filters by pageTitle with SMART MATCHING: tries exact match first, automatically falls back to partial matching if no exact results found. Supports status (current, archived, etc.), sorting (sort) and pagination (limit, cursor).

    • Returns a formatted list of pages including ID, title, status, space ID, author, version, and URL.
    • Pagination information including next cursor value is included at the end of the returned text content.
    • SMART TITLE SEARCH: When using pageTitle parameter, if exact match fails, automatically searches for partial matches (e.g., "Balance" will find "Balance Reconciliation System").
    • For full-text content search or advanced queries, use the conf_search tool.
    • Requires Confluence credentials.
  • conf_get_page

    Retrieves the full content (converted to Markdown) and metadata for a specific Confluence page using its numeric ID (pageId).

    • Includes complete page body, title, space info, author, version, labels, and URL. Use this after finding a page ID via confluence_list_pages or confluence_search to get its full content. Returns comprehensive page details formatted as Markdown.
  • conf_search

    Searches Confluence content. Supports multiple filter options: cql (for providing a complete custom Confluence Query Language string), searchTitle (text in title), spaceKey, labels, and contentType (page/blogpost). A general query parameter performs a basic text search (equivalent to CQL: text ~ "your query").

    • IMPORTANT for cql users: Ensure your CQL syntax is correct, especially quoting terms in text searches (e.g., text ~ "search phrase"). Invalid CQL will result in an error. Refer to official Confluence CQL documentation.
    • Filters are generally combined with AND logic.
    • Supports pagination (limit, cursor).
    • The executed CQL and pagination information (including next cursor value) are included directly in the returned text content.
    • Returns Markdown formatted results with snippets and metadata.
    • Requires Confluence credentials.
  • conf_ls_page_comments

    Lists comments for a Confluence page, identified by pageId. Includes both page-level and inline comments. Shows comment content and metadata in Markdown format. Supports pagination via limit and start parameters. Pagination information including next offset value is included directly in the returned text content. Requires Confluence credentials to be configured. Returns comment details as Markdown.

  • conf_ls_inline_comments

    Lists ONLY inline comments for a Confluence page, identified by pageId. Filters out regular page comments and shows only comments attached to specific text selections. Includes highlighted text context and comment content in Markdown format. Supports filtering by resolution status and sorting by document position or creation date. Use this instead of conf_ls_page_comments when you specifically need inline comments that reference particular text passages. Requires Confluence credentials to be configured.

Dùng MCP Atlassian Confluence với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Atlassian Confluence, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. Bạn có thể chạy MCP ngay trên thiết bị của mình hoặc kết nối qua URL của máy chủ MCP từ xa.

Cách 1: Dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Atlassian Confluence làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Atlassian Confluence.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "atlassian-confluence": {
      "command": "npx",
      "args": [
        "-y",
        "@aashari/mcp-server-atlassian-confluence"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Atlassian Confluence, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Atlassian Confluence.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Atlassian Confluence giúp tôi làm việc này không?
Atlassian Confluence
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Atlassian Confluence.

Cách 2: Thêm URL máy chủ MCP

Dùng cách này khi Atlassian Confluence đã được lưu trữ từ xa hoặc nhóm của bạn muốn có một trình kết nối dùng chung cho nhiều người dùng.

1

Mở mục Trình kết nối MCP

Trong TypingMind, vào Plugin, mở mục Trình kết nối MCP, rồi chọn Thêm URL.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Vào mục Plugin.
  3. Mở mục Trình kết nối MCP.
  4. Nhấp vào Thêm URL.
Biểu mẫu Thêm URL máy chủ MCP tùy chỉnh của TypingMind
2

Dán URL máy chủ

Nhập URL máy chủ của bạn vào trường URL máy chủ. Thêm tên kết nối, mô tả, biểu tượng, header HTTP tùy chỉnh hoặc cài đặt ứng dụng khách OAuth nếu máy chủ yêu cầu.

  1. Dán URL máy chủ của bạn vào trường URL máy chủ.
  2. Nhập tên kết nối cho Atlassian Confluence.
  3. Thêm mô tả và biểu tượng nếu bạn muốn dễ nhận biết kết nối hơn.
  4. Thêm header HTTP tùy chỉnh hoặc thông tin ứng dụng khách OAuth nếu máy chủ yêu cầu xác thực.
3

Tạo kết nối

Nhấp vào Tạo kết nối, sau đó quay lại danh sách Plugin và xác nhận kết nối MCP mới đang hoạt động.

  1. Nhấp vào Tạo kết nối.
  2. Quay lại danh sách trình kết nối MCP.
  3. Xác nhận kết nối Atlassian Confluence hiển thị trạng thái đang hoạt động.
  4. Làm mới danh sách plugin nếu kết nối chưa xuất hiện ngay.
4

Đổi mô hình mà không cần kết nối lại

Bắt đầu cuộc trò chuyện với mô hình bạn thích, bật các công cụ của Atlassian Confluence trong mục Plugin và chuyển sang mô hình khác khi cần. Kết nối MCP vẫn sẵn dùng trong không gian làm việc TypingMind.

  1. Bắt đầu cuộc trò chuyện mới trong TypingMind.
  2. Chọn mô hình AI bạn muốn dùng.
  3. Bật các công cụ của Atlassian Confluence trong mục Plugin.
  4. Yêu cầu mô hình dùng công cụ khi cần.
  5. Chuyển sang mô hình AI khác và dùng lại cùng kết nối MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Atlassian Confluence giúp tôi làm việc này không?
Atlassian Confluence
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Atlassian Confluence.

Câu hỏi thường gặp

Máy chủ MCP Atlassian Confluence dùng để làm gì?

Atlassian Confluence là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Atlassian Confluence với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Atlassian Confluence với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Atlassian Confluence với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Atlassian Confluence, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Atlassian Confluence với TypingMind?

Bạn có thể kết nối Atlassian Confluence trong TypingMind bằng trình kết nối MCP cục bộ hoặc bằng cách thêm URL máy chủ MCP từ xa. Dùng trình kết nối cục bộ khi máy chủ cần truy cập tệp, ứng dụng hoặc tài nguyên riêng trên thiết bị của bạn; dùng URL máy chủ khi máy chủ MCP được lưu trữ từ xa.

MCP Atlassian Confluence cung cấp những công cụ nào trong TypingMind?

Atlassian Confluence cung cấp 7 công cụ MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Atlassian Confluence không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Atlassian Confluence yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇