Mastodon MCP

by The-Focus-AI
Verified

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Used for secure credential management to store and retrieve Mastodon API tokens, ensuring secure access to Mastodon accounts without hardcoding credentials.

  • Provides tools for posting content to Mastodon, including creating toots with customizable visibility and content warnings, uploading and attaching media files (images, videos, audio), and adding alt text to media attachments.

마스토돈 MCP

Mastodon과 상호작용하는 데 필요한 도구를 제공하는 모델 컨텍스트 프로토콜 서버입니다. 현재 선택적 미디어 첨부 파일을 사용하여 툿 생성을 지원합니다.

특징

  • 사용자 정의 가능한 가시성 및 콘텐츠 경고로 뚜트를 만듭니다.
  • 미디어 파일(이미지, 비디오, 오디오)을 업로드하고 첨부하세요
  • 미디어 첨부 파일에 대체 텍스트/설명 추가
  • 1Password CLI를 사용한 보안 자격 증명 관리

필수 조건

  • 노드.js 18+
  • pnpm
  • 1Password CLI( op ) 설치 및 구성
  • Mastodon 계정 및 API 액세스 토큰

설치

지엑스피1

구성

이 도구를 사용하려면 1Password에 저장된 Mastodon API 토큰이 필요합니다. 토큰을 다음 위치에 저장하세요.

  • op://Personal/Floss.Social Key/notesPlain

선택적으로 환경 변수를 통해 Mastodon 인스턴스 URL을 설정할 수 있습니다.

export MASTODON_INSTANCE_URL="https://your.instance.social"

설정하지 않으면 기본적으로 https://floss.social 로 설정됩니다.

용법

MCP 서버를 시작합니다.

pnpm start

서버는 다음 매개변수를 사용하여 단일 도구 mastodon_create_toot 노출합니다.

  • content (필수): 귀하의 투트의 텍스트 콘텐츠
  • visibility : "공개", "비공개", "비공개" 또는 "직접" 중 하나(기본값: "공개")
  • sensitive : 민감한 콘텐츠에 대한 부울 플래그(기본값: false)
  • spoiler_text : 콘텐츠 앞에 표시되는 경고 텍스트(기본값: "")
  • media_file : 첨부할 미디어 파일의 경로
  • media_description : 첨부된 미디어에 대한 대체 텍스트/설명

MCP Inspector를 사용한 예시 사용

  1. 검사기를 시작합니다.
npx @modelcontextprotocol/inspector node dist/mcp-server.js
  1. 브라우저에서 http://localhost:5173을 엽니다.
  2. 다음과 같은 매개변수를 사용하여 도구를 사용하세요.
{ "content": "Hello from MCP!", "visibility": "public", "media_file": "/path/to/image.jpg", "media_description": "A beautiful sunset" }

개발

# Run in development mode with auto-reloading pnpm dev # Build the project pnpm build # Run the built server pnpm start

보안

  • 코드베이스에 자격 증명이 하드코딩되어 있지 않습니다.
  • API 토큰은 1Password에 안전하게 저장되고 검색됩니다.
  • API 응답은 실수로 자격 증명이 유출되는 것을 방지하기 위해 git에서 무시됩니다.

특허

아이에스씨

-
security - not tested
F
license - not found
-
quality - not tested

Mastodon과 상호작용하기 위한 도구를 제공하는 모델 컨텍스트 프로토콜 서버로, 사용자가 사용자 정의 가능한 표시 기능으로 툿을 생성하고 설명이 있는 미디어 파일을 첨부할 수 있습니다.

  1. Features
    1. Prerequisites
      1. Installation
        1. Configuration
          1. Usage
            1. Example Usage with MCP Inspector
          2. Development
            1. Security
              1. License
                ID: aa8nqef2kx