Skip to main content
Glama
Library MCP

Library MCP

by lethain

library-mcp는 마크다운 지식 베이스와 상호 작용하는 MCP 서버입니다. 기본적으로 하위 폴더가 있을 수도 있고 없을 수도 있는 폴더로, .md 확장자를 가진 파일을 포함하고 다음과 같은 메타데이터로 시작합니다.

지엑스피1

현재 버전의 일반적인 워크플로는 주어진 태그에 대한 최근 콘텐츠를 검색한 다음 해당 태그 사용에 대해 논의하는 것입니다.

Get the next 50 posts with tag "executive",
then tell me what I should do about this problem
I am running into: ...

날짜 범위별로 동일한 작업을 수행할 수도 있습니다.

Summarize the blog posts I wrote in the past year.

"왜 블로그 전체를 컨텍스트 창에 업로드하지 않는 거지?"라고 합리적으로 물을 수 있는데, 이 라이브러리가 그 접근 방식보다 더 나은 두 가지 부분이 있습니다.

  1. 제 블로그 코퍼스는 오늘날 대부분의 모델 컨텍스트 윈도우보다 훨씬 큽니다. 게다가 컨텍스트 윈도우가 엄청나게 커졌다고 해도, 과거에는 평범한 내용도 많이 작성했기 때문에, 이 부분을 생략하는 것이 하나의 특징일지도 모릅니다.

  2. 저는 여러 개의 서로 다른 마크다운 지식 기반을 가지고 있으며, 이를 통해 이들 모두를 동시에 작업할 수 있습니다.

마지막으로, 이건 노트북에서 로컬로 실행하기 위한 취미 프로젝트입니다. 이 소프트웨어를 사용해서 사람에게 해를 끼치지는 않았지만, 꽤 잘 작동합니다!

도구

이 MCP 서버는 이러한 도구를 제공합니다.

콘텐츠 검색 도구

컨텍스트 창으로 콘텐츠를 검색하기 위한 도구:

  • get_by_tag - 태그로 콘텐츠를 검색합니다.

  • get_by_text - 특정 텍스트로 콘텐츠를 검색합니다.

  • get_by_slug_or_url - 슬러그 또는 URL로 게시물 찾기

  • get_by_date_range - 날짜 범위 내에 게시된 게시물을 가져옵니다.

태그 관리 도구

지식 기반을 탐색하기 위한 도구:

  • search_tags - 쿼리와 일치하는 태그를 검색합니다.

  • list_all_tags - 게시물 수와 최근 순으로 정렬된 모든 태그를 나열합니다.

유지 관리 도구

도구 실행을 위한 도구:

  • rebuild - 콘텐츠 인덱스를 재구축합니다. 콘텐츠를 추가하거나 기존 콘텐츠를 편집한 경우 등에 유용합니다.

설정/설치

이 지침에서는 OS X에 Claude Desktop을 설치하는 방법을 설명합니다. 다른 플랫폼에서도 비슷한 방식으로 작동합니다.

  1. Claude Desktop을 설치하세요.

  2. library-mcp를 편리한 위치에 복제합니다. /Users/will/library-mcp 라고 가정합니다.

  3. uv 설치되어 있는지 확인하고 다음 지침을 따르 세요.

  4. Claude Desktop, 설정, 개발자로 이동하여 MCP 구성 파일을 생성하세요. 그런 다음 claude_desktop_config.json 파일을 업데이트하세요. ( will 사용자 이름으로 바꿔야 합니다. 예: whoami 출력값)

     cd /Users/will/Library/Application Support/Claude
     vi claude_desktop_config.json

    그런 다음 이 섹션을 추가합니다.

     {
       "mcpServers": {
         "library": {
           "command": "uv",
           "args": [
             "--directory",
             "/Users/will/library-mcp",
             "run",
             "main.py",
             "/Users/will/irrational_hugo/content"
           ]
         }
       }
     }
  5. 클로드를 닫았다가 다시 열어보세요.

  6. 작동해야 합니다...

Available Tools

7 tools
get_by_date_rangeB

Get posts published within a date range.

Args: start_date: the start date in ISO format (YYYY-MM-DD) end_date: the end date in ISO format (YYYY-MM-DD) limit: the maximum number of posts to return

Inputs: start_date (required), end_date (required), limit.

get_by_slug_or_urlB

Get a post by its slug or URL.

Args: identifier: the slug, URL, or path fragment to search for

Inputs: identifier (required).

get_by_tagC

Get blog content by its tag.

Args: tag: the tag associated with content limit: the number of results to include

Inputs: tag (required), limit.

get_by_textC

Get blog content by text in content.

Args: query: text for an exact match limit: the number of results to include

Inputs: query (required), limit.

list_all_tagsA

List all tags sorted by number of posts and most recent post.

Inputs: no named parameters.

rebuildA

Rebuild text index. Useful for when contents have changed on disk

Inputs: no named parameters.

search_tagsB

Search for tags matching the provided query.

Args: tag_query: partial or full tag name to search for limit: the maximum number of tags to return

Inputs: tag_query (required), limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 7 tools

    Disambiguation4/5

    Most tools have distinct purposes focused on different retrieval methods (by date, slug/URL, tag, text content) and tag operations, but 'get_by_slug_or_url' and 'get_by_text' could potentially overlap if users confuse slug/URL with text content queries. The descriptions help clarify, but there's minor ambiguity.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with underscores (e.g., get_by_date_range, list_all_tags, search_tags). The naming is predictable and readable throughout the set, with no deviations in style.

    Tool Count5/5

    With 7 tools, this is well-scoped for a library/blog content server. It covers core retrieval operations and tag management without being overwhelming, and each tool serves a clear purpose in the domain.

    Completeness3/5

    The toolset provides good read/search coverage for blog content and tags, but lacks any create, update, or delete operations, which are notable gaps for a full CRUD lifecycle. Agents can retrieve and rebuild but not modify content, limiting workflow completeness.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      A local MCP server that allows AI systems to search and retrieve information from a custom knowledge base generated from markdown files. It provides tools for natural language text search, category browsing, and specific content chunk retrieval.
      3
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server for managing Obsidian-style note vaults, providing tools for full-text search, note creation, and backlink tracking. It enables users to navigate, structure, and update their personal knowledge base through natural language.
      9
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      A CLI tool and MCP server that turns markdown documentation into a searchable, queryable knowledge base.
      -