Skip to main content
Glama
Mattermost MCP Server

Mattermost MCP Server

by jhanglim

Mattermost MCP Server

Mattermost와 연동되는 Model Context Protocol (MCP) 서버입니다. 이 서버를 통해 Claude가 Mattermost의 메시지 검색, 사용자 조회, 채널 관리, 팀 정보 조회 등을 수행할 수 있습니다.

주요 기능

  • 사용자 관리: 현재 사용자 정보 조회, 사용자 검색, 사용자 상세 정보 조회

  • 메시지 검색: 키워드, 사용자명, 날짜를 사용하여 전체 메시지 검색

  • 사용자별 메시지 검색: 특정 사용자의 메시지만 검색

  • 팀 관리: 소속된 팀 목록 조회

  • 채널 관리: 채널 목록 조회 및 채널 메시지 가져오기

  • 스레드 조회: 특정 게시물의 전체 대화 스레드 조회

  • 자동 사용자 정보 포함: 모든 메시지 결과에 작성자의 이름과 username 자동 포함

  • KST 시간 표시: 모든 타임스탬프가 한국 시간(KST, UTC+9)으로 표시

Related MCP server: Mattermost MCP Server

사전 요구사항

  • Node.js (v16 이상)

  • npm 또는 yarn

  • API 접근 권한이 있는 Mattermost 계정

  • Mattermost 서버 URL 및 액세스 토큰

  • Claude Desktop 앱

설치 방법

# 저장소 클론
git clone https://github.com/jhanglim/mattermost-mcp-server.git
cd mattermost-mcp-server

# 의존성 설치
npm install

# TypeScript 컴파일
npm run build

설정

1. Mattermost 액세스 토큰 발급

  1. Mattermost에 로그인

  2. 계정 설정 → 보안 → 개인 액세스 토큰으로 이동

  3. 토큰 생성 클릭

  4. 토큰 설명 입력 후 생성

  5. 생성된 토큰을 복사 (한 번만 표시됩니다!)

2. Claude Desktop 설정

Claude Desktop 설정 파일을 편집하세요:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json

다음 내용을 추가:

{
  "mcpServers": {
    "mattermost": {
      "command": "node",
      "args": ["/절대경로/mattermost-mcp-server/build/index.js"],
      "env": {
        "MATTERMOST_URL": "https://your-mattermost-server.com",
        "MATTERMOST_TOKEN": "your-personal-access-token"
      }
    }
  }
}

중요:

  • /절대경로/mattermost-mcp-server/를 실제 프로젝트 경로로 변경하세요

  • build/index.js 경로를 정확히 지정하세요

  • MATTERMOST_URL과 MATTERMOST_TOKEN을 실제 값으로 변경하세요

3. Claude Desktop 재시작

설정을 저장한 후 Claude Desktop을 완전히 종료하고 다시 시작하세요.

사용 예시

Claude Desktop에서 다음과 같이 요청할 수 있습니다:

기본 검색

  • "Mattermost에서 '프로젝트 업데이트' 관련 메시지를 검색해줘"

  • "개발 채널의 최근 메시지를 보여줘"

  • "내가 속한 모든 팀을 보여줘"

사용자 관련

  • "내 Mattermost 정보를 알려줘"

  • "'홍길동' 사용자를 찾아줘"

  • "'nayoung' 사용자의 메시지를 검색해줘"

  • "'이나영'이 작성한 '배포' 관련 메시지를 찾아줘"

고급 검색

  • "from:jhanglim 형식으로 특정 사용자의 메시지 검색"

  • "@username 형식으로 멘션된 메시지 검색"

  • "마케팅 팀의 채널 목록을 알려줘"

문제 해결

MCP 서버가 Claude Desktop에 표시되지 않음

  1. claude_desktop_config.json 파일 경로가 올바른지 확인

  2. JSON 문법이 올바른지 확인 (쉼표, 중괄호 등)

  3. 프로젝트 경로가 절대 경로로 정확히 지정되었는지 확인

  4. build/index.js 파일이 존재하는지 확인 (npm run build 실행)

  5. Claude Desktop을 완전히 재시작

연결 오류

  • Mattermost URL이 올바른지 확인 (https:// 포함)

  • 액세스 토큰이 유효한지 확인

  • Mattermost 서버에 접근 가능한지 확인

  • 방화벽이나 프록시 설정 확인

권한 오류

  • 토큰에 적절한 권한이 있는지 확인

  • 팀/채널 멤버십을 확인

  • 토큰이 만료되지 않았는지 확인

검색 결과가 없음

  • 검색어를 확인하세요

  • from:username 형식이 올바른지 확인

  • 사용자가 실제로 메시지를 작성했는지 확인

빌드 오류

# node_modules 삭제 후 재설치
rm -rf node_modules package-lock.json
npm install
npm run build

보안 주의사항

  • ⚠️ 액세스 토큰을 절대 Git에 커밋하지 마세요

  • ⚠️ claude_desktop_config.json을 공유하지 마세요 (토큰 포함)

  • 가능하면 읽기 전용 권한의 토큰을 사용하세요

  • 토큰을 정기적으로 갱신하세요

  • 더 이상 사용하지 않는 토큰은 삭제하세요

라이선스

MIT License - 자세한 내용은 LICENSE 파일을 참조하세요

관련 링크

지원

문제가 발생하거나 질문이 있으시면 GitHub Issues에 등록해주세요.

Available Tools

9 tools
get_channel_messagesC

특정 채널의 최근 메시지들을 가져옵니다. 결과에는 자동으로 작성자의 이름(user_name)과 username이 포함됩니다.

Inputs: channel_id (required), page, per_page.

get_channelsC

특정 팀의 채널 목록을 가져옵니다.

Inputs: team_id (required).

get_current_userB

현재 토큰 소유자(나)의 정보를 조회합니다.

Inputs: no named parameters.

get_post_threadC

특정 게시물의 전체 스레드를 가져옵니다. 결과에는 자동으로 작성자의 이름(user_name)과 username이 포함됩니다.

Inputs: post_id (required).

get_teamsB

현재 사용자가 속한 모든 팀 목록을 가져옵니다.

Inputs: no named parameters.

get_user_infoC

사용자 ID로 사용자의 상세 정보를 조회합니다. username, 이름, 닉네임 등을 확인할 수 있습니다.

Inputs: user_id (required).

search_messagesC

Mattermost에서 메시지를 검색합니다. 키워드, 사용자명(@username 또는 from:username), 날짜 등으로 검색할 수 있습니다. 검색 결과에는 자동으로 작성자의 이름(user_name)과 username이 포함됩니다.

Inputs: query (required), is_or_search.

search_user_messagesC

특정 사용자의 메시지를 이름이나 username으로 검색합니다. '박찬우', 'cwpark' 등으로 검색 가능.

Inputs: user_name (required), keyword.

search_usersC

사용자를 이름, username, 닉네임으로 검색합니다.

Inputs: search_term (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 9 tools

    Disambiguation4/5

    Most tools have distinct purposes, such as get_channels for listing channels and get_user_info for user details. However, search_messages and search_user_messages overlap significantly, as both search messages with user-related filters, which could cause confusion for an agent. The other tools are clearly differentiated by their target resources (e.g., channels, posts, teams, users).

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using snake_case, such as get_channels, search_messages, and get_user_info. There are no deviations in naming style or convention, making the set predictable and easy to parse. This consistency aids in agent understanding and tool selection.

    Tool Count5/5

    With 9 tools, the server is well-scoped for interacting with Mattermost, covering key resources like channels, messages, teams, and users. The count is neither too sparse nor bloated, allowing for comprehensive operations without overwhelming complexity. Each tool appears to serve a specific, useful function in the domain.

    Completeness4/5

    The tool set provides strong read/search coverage for Mattermost, including getting messages, channels, teams, users, and searching across these resources. However, there are notable gaps in write operations, such as creating or updating messages, channels, or teams, which limits full CRUD/lifecycle management. Agents can perform retrieval tasks effectively but may struggle with modification workflows.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      A Model Context Protocol server that enables Claude to interact with Mattermost instances, supporting post management, channel operations, user management, and reaction management.
      10 npm
      1
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      This server enables interaction with Mattermost workspaces to manage channels, messages, threads, and user profiles via the Mattermost REST API. It provides a comprehensive suite of tools for reading channel history, posting messages, and managing reactions within a trusted environment.
      -
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables interaction with Mattermost workspaces to manage channels, messages, threads, reactions, and user profiles via the REST API. This server allows AI models to perform both read and write operations, such as posting messages and retrieving channel history, within a trusted environment.
      -