Open Library Subjects MCP Server

Open Library Subjects MCP Server

Fetches books by genre or subject from the Open Library API without requiring an API key, returning titles, authors, and publication years.

Category
Visit Server

README

Open Library Subjects MCP Server

Open Library API로 장르/주제별 도서 목록과 영어 책 제목 기반 상세 정보를 가져오는 Python FastMCP 서버입니다. API 키 없이 love, history, science 같은 subject를 입력하거나 The Road Less Traveled 같은 영어 제목을 입력해 도서 데이터를 반환합니다.

기능

  • search_subject_books
    • Open Library subject/genre를 입력받습니다.
    • https://openlibrary.org/subjects/{subject}.json을 호출합니다.
    • 도서 제목, 저자, 첫 출판 연도, Open Library URL을 반환합니다.
    • 기본 반환 개수는 5권이고 limit으로 1~50권까지 조정할 수 있습니다.
  • search_book_by_title
    • 영어 책 제목을 입력받습니다.
    • https://openlibrary.org/search.json으로 책을 찾고, work 상세와 editions 정보를 함께 조회합니다.
    • 제목, 저자, 첫 출판 연도, 설명, subject, 판본 정보를 반환합니다.
    • 한국어 번역 제목은 Open Library 검색 품질이 낮아 영어 제목만 받습니다.
  • GET /health
    • 서버 상태 확인용 엔드포인트입니다.
  • POST /mcp
    • FastMCP HTTP transport 엔드포인트입니다.

로컬 실행

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txt
python server.py

기본 MCP 엔드포인트:

http://localhost:8000/mcp

상태 확인:

curl http://localhost:8000/health

MCP 클라이언트 테스트

서버를 실행한 뒤 다른 터미널에서 실행합니다.

python - <<'PY'
import asyncio
from fastmcp import Client

async def main():
    async with Client("http://localhost:8000/mcp") as client:
        subject_result = await client.call_tool(
            "search_subject_books",
            {"subject": "love", "limit": 3},
        )
        print(subject_result.data)

        book_result = await client.call_tool(
            "search_book_by_title",
            {"title": "The Road Less Traveled", "edition_limit": 3},
        )
        print(book_result.data)

asyncio.run(main())
PY

테스트

source .venv/bin/activate
pytest -q

파일 구조

.
├── README.md
├── server.py
├── requirements.txt
├── requirements-dev.txt
└── tests/
    └── test_server.py

참고

  • 인증/API 키가 필요 없는 Open Library API를 사용합니다.
  • subject 값은 공백을 underscore로 바꾸고 소문자로 정규화합니다.
  • 책 제목 검색은 영어 ASCII 제목만 허용합니다.
  • 네트워크/API 오류나 응답 형식 오류는 명확한 예외로 변환합니다.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured