jp-cultural-data-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@jp-cultural-data-mcp 国立国会図書館で源氏物語の書誌を3件検索して"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
jp-cultural-data-mcp
国立国会図書館、ジャパンサーチ、メディア芸術データベースの資料を調べるMCPサーバーです。MCP、CLI、Pythonライブラリから同じ機能を使えます。
準備 · MCP登録 · CLI · Python · 移行手順
準備
Python 3.12以上、uv、Gitが必要です。
git clone https://github.com/koizumikento/jp-cultural-data-mcp.git
cd jp-cultural-data-mcp
uv sync --lockedAPIキーは不要です。
Related MCP server: @cyanheads/datacite-mcp-server
MCPクライアントに登録する
設定例の /absolute/path/to/jp-cultural-data-mcp をクローン先の絶対パスに置き換えます。Windowsでは C:/projects/jp-cultural-data-mcp のように書けます。
Codex
codex mcp add jp-cultural-data-mcp -- uv --directory "/absolute/path/to/jp-cultural-data-mcp" run --locked jp-cultural-data-mcp
codex mcp list新しいセッションで /mcp を開いて接続状態を確認します。
Claude Desktop / Cursor
Claude DesktopはOSに応じて次のファイルに設定します。
Windowsは
%APPDATA%/Claude/claude_desktop_config.jsonmacOSは
~/Library/Application Support/Claude/claude_desktop_config.json
Cursorはプロジェクト内の .cursor/mcp.json を使います。mcpServers に次の項目を追加し、クライアントを再起動してください。
{
"mcpServers": {
"jp-cultural-data-mcp": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/jp-cultural-data-mcp",
"run",
"--locked",
"jp-cultural-data-mcp"
]
}
}
}uv が見つからない場合は、command に実行ファイルの絶対パスを指定してください。
ツール
データごとの入力条件、結果、出典と利用条件は、表のリンク先に記載しています。
ツール | データと操作の説明 |
| |
| |
| |
| |
| |
| |
| |
|
CLIで使う
クローン先で実行します。取得結果はUTF-8のJSONとして標準出力に書き出します。
uv run jp-cultural-data-mcp ndl search-bibliography --title 源氏物語 --limit 3
uv run jp-cultural-data-mcp japan-search search-items --query モネ --limit 3
uv run jp-cultural-data-mcp mediaarts get-manga-issue-contents --query 週刊少年マガジン --limit 3引数の説明は、各サブコマンドに --help を付けて確認できます。
Pythonで使う
自分のPythonプロジェクトの依存関係に追加します。
uv add "git+https://github.com/koizumikento/jp-cultural-data-mcp.git@main"次のコードを example.py に保存し、uv run python example.py で実行します。
import asyncio
from jp_cultural_data_mcp import search_bibliography
result = asyncio.run(search_bibliography(title="源氏物語", limit=3))
print(result)ツールと同じ名前の非同期関数を利用できます。すでにイベントループがある場合は、直接 await してください。
出典と利用条件
コードはMITライセンスです。データは実行時に各提供元から取得します。取得データには、データ別の説明に記載した提供元の利用条件が適用されます。
開発
uv sync --locked
uv run ruff check .
uv run ty check
uv run pytest
uv buildAvailable Tools
8 toolsget_digitized_pagesCRead-onlyIdempotent
List public IIIF page links for an NDL Digital Collections PID. Start is one-based.
Inputs: pid (required), limit, start. Returns: object
get_itemBRead-onlyIdempotent
Get published metadata for an item ID, including its Japan Search page.
Inputs: item_id (required). Returns: object
get_manga_issue_contentsBRead-onlyIdempotent
List works and start pages in a manga magazine issue by its MADB ID.
Inputs: issue_id (required), limit, start. Returns: object
search_bibliographyARead-onlyIdempotent
Search by title, author, or ISBN. Use digitized_pids for IIIF. Start is one-based.
Inputs: isbn, limit, start, title, +1 more. Returns: object
search_collectionsBRead-onlyIdempotent
Find databases, organizations, galleries, or themed searches and their public pages.
Inputs: kind (required), limit, query, offset. Returns: object
search_itemsARead-onlyIdempotent
Search items by keyword, database ID, rights code (e.g. cc0), and type (e.g. paint).
Inputs: query (required), limit, offset, rights, +2 more. Returns: object
search_manga_issuesBRead-onlyIdempotent
Find manga magazine issue IDs by title, optionally narrowed by volume, issue or year.
Inputs: query (required), year, limit, start, +2 more. Returns: object
search_worksBRead-onlyIdempotent
Search work and series titles in the selected manga, anime or game catalog.
Inputs: query (required), medium (required), limit, start. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
The tools largely target distinct resources: bibliography, items, collections, works, manga issues, digitized pages, and item metadata. The several search_* tools could cause some initial hesitation, but the descriptions clearly distinguish their domains and identifiers.
All tool names use snake_case and follow a consistent verb_noun pattern, with search_* for discovery and get_* for retrieval. There is no mixing of naming conventions.
Eight tools are well-scoped for a read-only Japanese cultural-data API. Each tool maps to a clear resource or action, and none feels redundant or gratuitous.
The surface covers search and detail retrieval for items, digitized pages, and manga issue contents, plus search for bibliography, collections, and works. Minor gaps exist because there are no dedicated get tools for bibliography, collection, or work metadata, though search results and item lookups may cover most workflows.
Maintenance
Related MCP Connectors
Search OpenAlex scholarly works with citation counts and DOIs via a hosted read-only MCP server.
Search Crossref academic papers and DOI metadata through one unofficial MCP server.
Authoritative JLPT-graded Japanese dataset (kanji, vocab, grammar, history) via MCP and REST.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables querying Japan's national academic database, CiNii Research, for articles, books, dissertations, KAKEN projects, and researcher profiles via seven MCP tools.113MIT
- AlicenseNot gradedqualityBmaintenanceEnables searching DataCite datasets and software, fetching DOI metadata, tracing relations, and formatting citations via MCP, supporting stdio or Streamable HTTP.275 npm1Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables keyword cross-searching of Japan Search cultural collections and retrieval of item metadata by ID through a read-only MCP interface.MIT
- AlicenseBqualityBmaintenanceEnables users to search CiNii Research articles and research records plus KAKEN projects and researcher information through MCP, CLI, and Python interfaces.6MIT