ptna-enc-mcp
피티나 피아노곡 사전 MCP 서버
피티나 피아노곡 사전을 「정전(마스터)」으로 삼아, 콘서트 프로그램의 곡명·작곡가명 표기 오류를 교정하기 위한 MCP 서버.
모호한 곡명을 던지면, 본가의 공식 타이틀·작곡가명·작품번호·연주 시간이 반환된다.
ℹ️ 피티나 비공식 개인 도구입니다. 곡사전의 해설문 등 저작권은 피티나/원저자에게 귀속됩니다. 개인 이용·교정은 OK지만, 출력의 전재나 대량 접근은 하지 마십시오.
할 수 있는 일(도구)
도구 | 용도 |
| 곡명/작곡가 키워드로 악곡 검색. 공식 타이틀·작곡가·opus·연주 시간·곡 ID 후보 목록(교정의 중심) |
| 곡 ID로 상세(공식 타이틀·원제·opus·해설문 앞부분) |
| 작곡가명의 공식 표기·ID 검색 |
| 작곡가 프로필+작품 목록 |
교정 방법(예)
프로그램에 「뷔르크뮐러 귀부인의 승마」가 있다면 →
search_pieces("뷔르크뮐러 귀부인의 승마") →
공식 타이틀 25의 연습곡 귀부인의 승마, 작곡가 뷔르크뮐러(뷔르크뮐러),
작품번호 Op.100-25가 반환된다. 이를 정전으로 채택.
Related MCP server: MusicBrainz MCP Server
셋업
cd /Users/miku/ptna-enc-mcp
python3 -m venv .venv
.venv/bin/pip install -e .Claude Code 등록
claude mcp add ptna-enc -- /Users/miku/ptna-enc-mcp/.venv/bin/ptna-enc-mcp등록 후, Claude Code 대화에서 「피티나에서 『○○』의 공식 표기 찾아줘」라고 부탁하면 사용할 수 있다.
확인: claude mcp list에 ptna-enc가 나오면 OK.
동작 확인
.venv/bin/python tests/test_parse.py # パーサ単体テスト(ネット不要)설정(환경 변수·임의)
변수 | 기본값 | 의미 |
|
| 최소 요청 간격(초) |
|
| 페이지 캐시 유효 기간(초). |
|
| 캐시 저장 위치 |
| 도구명+연락처 | 전송 User-Agent |
설계·스크레이핑 방침
API 미제공 사이트이므로 HTML 스크레이핑. 사전 크롤링/DB는 보유하지 않고, TTL 캐시로 「한 번 본 페이지를 기억」할 뿐(운영 제로).
매번 1건만 취득하고, 고유 User-Agent 명시+요청 간격 준수(예의 레이어).
고급 필터(장르/조성/스텝 레벨)는 사이트가 JS로 렌더링하므로 v1에서는 미지원.
상세는 docs/superpowers/specs/2026-08-07-ptna-enc-mcp-design.md.
Available Tools
4 toolsget_composerARead-only
作曲家IDからプロフィール概要と作品リストを取得する。
Args: composer_id: ピティナ曲事典の作曲家ID(URLの /persons/ の数字)。
Returns: {composer_id, name, profile, works: [{piece_id, title, url}], url}
Inputs: composer_id (required).
get_pieceARead-only
楽曲IDから詳細(正式タイトル・作曲家・作品番号・解説冒頭・URL)を取得する。
search_pieces で見つけた piece_id を渡し、1曲の正式情報を確定する用途。
Args: piece_id: ピティナ曲事典の楽曲ID(URLの /musics/ の数字)。
Returns: {piece_id, title, opus, composer, composer_id, description, url}
Inputs: piece_id (required).
search_composersARead-only
作曲家名で検索し、本家の正式名・作曲家ID・URLの候補を返す。
作曲家名の表記揺れ校正用(例:「ブルグミュラー」→正式表記の確認)。 内部的には楽曲検索結果から作曲家をユニーク抽出する。
Args: name: 作曲家名またはその断片。 limit: 返す件数の上限(既定20)。
Returns: {"count": int, "composers": [{composer_id, name, url}]}
Inputs: name (required), limit.
search_piecesARead-only
曲名・作曲家名のキーワードでピティナ曲事典の楽曲を検索する。
表記揺れ校正の中心ツール。手元の曖昧な曲名(例:「ブルクミュラー 25の練習曲」)を 渡すと、本家の正式タイトル・作曲家名・作品番号・演奏時間・曲IDの候補一覧を返す。
Args: keyword: 検索語(曲名/作曲家名/その断片)。 limit: 返す件数の上限(既定20)。
Returns: {"count": int, "results": [{piece_id, title, title_en, composer, composer_id, opus, duration, url}]}
Inputs: keyword (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct resource and action: search_pieces and get_piece operate on pieces, while search_composers and get_composer operate on composers. There is no overlap or ambiguity between the search and retrieval functions.
All tool names follow a consistent verb_noun pattern: search_pieces, get_piece, search_composers, get_composer. The verbs 'search' and 'get' are used uniformly to distinguish query operations from detail retrieval.
Four tools is a well-scoped set for a music encyclopedia lookup service. Each tool serves a clear, non-redundant purpose without feeling sparse or bloated.
The tool surface provides complete coverage for browsing the encyclopedia: searching and retrieving both pieces and composers. Search results expose IDs that feed into the get_* tools, and get_composer includes a works list, closing the loop for composer-to-piece exploration.
Maintenance
Related MCP Connectors
Read-only, sourced catalogue of classical keyboard works: composers, catalogues, difficulty levels.
Find the songwriter behind a name or IPI name number, under every spelling and number.
Repertoire & program archive for classical vocalists. Match works from posters, save, search.
Read-only sheet music discovery and practice tools, with browser-local recognition guidance.
Related MCP Servers
- AlicenseAqualityCmaintenanceProvides access to the Genji API for searching and analyzing classical Japanese literature texts with advanced normalization features for historical Japanese text variations, including repeat marks expansion, kanji-kana unification, and historical kana handling.44 npmMIT
- AlicenseAqualityDmaintenanceEnables AI assistants to query the MusicBrainz music database for artists, albums, recordings, and labels. It provides tools for advanced searches, detailed metadata retrieval, and accessing cover art information.1713GPL 3.0
- AlicenseAqualityBmaintenanceEnables searching and retrieving classical music works, scores, and recordings from IMSLP via natural language, without requiring an API key or account. It respects IMSLP's crawl policies and reports copyright status per jurisdiction.792 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI apps to search song sheet music, MIDI, and isolated stems, inspect available parts and notation levels, and retrieve song pages, printable PDFs, and Guitar Pro files without sign-in.MIT