UB

ukenn2112/bangumimcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

27 stars 15 forks 품질 61 트렌드 0

bgm.tv MCP 서버

개요

Bangumi TV API에 프로그래밍 액세스를 제공하는 모델 Context Protocol (MCP) 서버는 Claude와 같은 AI 조수를 사용하여 종합 애니메이션, 만화, 음악, 게임 및 실제 미디어 데이터를 상호 작용합니다. - : Bangumi API endpoints의 전체 적용 - : 일반적인 작업을위한 사전 제작 다중 단계 워크플로우 - : API 문서에 대한 전체 OpenAPI 사양 - : MCP 모범 사례를 따르는 깨끗하고 유지 가능한 코드베이스 - : 전체 Python 유형 hints 및 enum 정의 - : HTTPx를 사용하여 비 차단 API 호출 - Python 3.10 이상 - uv 패키지 관리자 (추천) 또는 pip : BANGUMI TOKEN은 선택적이지만 필요한 경우 : - 인증된 작업 (컬렉션, 개인 데이터) - R18 콘텐츠 액세스 - 작업 작성 (작성, 업데이트, 삭제) 토큰 받기: https://next.bgm.

개요(AI 번역)

Korean | 한국어


한국어

Bangumi TV API에 프로그래밍 액세스를 제공하는 모델 Context Protocol (MCP) 서버는 Claude와 같은 AI 조수를 사용하여 종합 애니메이션, 만화, 음악, 게임 및 실제 미디어 데이터를 상호 작용합니다.

특징

  • 55 MCP 도구: Bangumi API 엔드 포인트의 전체 적용
  • 3 Workflow Prompts: 일반적인 작업에 대한 사전 제작된 다중 단계 워크플로우 -1 Resource: API 문서에 대한 전체 OpenAPI 사양
  • Modular Architecture: MCP 모범 사례를 따르는 깨끗하고 유지 가능한 코드베이스
  • Type-Safe: 전체 파이썬 타입 힌트와 enum 정의
  • Async Support: HTTPx를 사용하여 API 호출

빠른 시작

# 필수품

  • Python 3.10 이상
  • uv 패키지 관리자 (추천) 또는 pip

설치

Claude 데스크탑 구성

claude_desktop_config.json에 추가:

Note: BANGUMI_TOKEN는 선택 사항이 있지만, 다음을 위해서는:

  • 정통 작업 (통화, 개인 데이터)
  • R18 콘텐츠 액세스
  • 작업 작성 (create, update, delete)

토큰 받기: https://next.bgm.tv/demo/access-token

프로젝트 아키텍처

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Bangumi MCP Server

English | 中文


English

A Model Context Protocol (MCP) server that provides programmatic access to the Bangumi TV API, enabling AI assistants like Claude to interact with comprehensive anime, manga, music, game, and real-world media data.

Features

  • 55 MCP Tools: Complete coverage of Bangumi API endpoints
  • 3 Workflow Prompts: Pre-built multi-step workflows for common tasks
  • 1 Resource: Full OpenAPI specification for API documentation
  • Modular Architecture: Clean, maintainable codebase following MCP best practices
  • Type-Safe: Full Python type hints and enum definitions
  • Async Support: Non-blocking API calls using httpx

Quick Start

Prerequisites

  • Python 3.10 or higher
  • uv package manager (recommended) or pip

Installation

# Clone the repository
git clone https://github.com/Ukenn2112/BangumiMCP.git
cd BangumiMCP

# Create and activate virtual environment
uv venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Install dependencies
uv pip install -e .

Configuration for Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "bangumi-tv": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/BangumiMCP",
        "run",
        "main.py"
      ],
      "env": {
        "BANGUMI_TOKEN": "your_token_here"
      }
    }
  }
}

Note: BANGUMI_TOKEN is optional but required for:

  • Authenticated operations (collections, personal data)
  • R18 content access
  • Write operations (create, update, delete)

Get your token at: https://next.bgm.tv/demo/access-token

Project Architecture

BangumiMCP follows a modular architecture designed for maintainability and scalability:

BangumiMCP/
├── main.py                           # Server initialization (44 lines)
├── src/
│   ├── config.py                     # Configuration constants
│   ├── enums.py                      # API enum definitions (8 types)
│   ├── utils/
│   │   ├── api_client.py             # HTTP client & error handling
│   │   └── formatters.py             # Data formatting utilities
│   ├── resources/
│   │   └── openapi_resource.py       # OpenAPI specification resource
│   ├── tools/                        # 55 MCP tools organized by domain
│   │   ├── subject_tools.py          # Subjects & episodes (10 tools)
│   │   ├── character_tools.py        # Characters (7 tools)
│   │   ├── person_tools.py           # Persons & companies (7 tools)
│   │   ├── user_tools.py             # User information (3 tools)
│   │   ├── collection_tools.py       # Collections (11 tools)
│   │   ├── revision_tools.py         # Edit history (8 tools)
│   │   └── index_tools.py            # Indices/directories (9 tools)
│   └── prompts/
│       └── workflow_prompts.py       # Composite prompts (3)
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "bangumi-tv": { "command": "uv", "args": [ "--directory", "/path/to/BangumiMCP", "run", "main.py" ], "env": { "BANGUMI_TOKEN": "your_token_here" } } } }