Library MCP
library-mcp是一个用于与 Markdown 知识库交互的 MCP 服务器。它包含一个文件夹,该文件夹可能有或没有子文件夹,包含以.md为扩展名的文件,并以如下元数据开头:
----
title: My blog post
tags:
- python
- programming
url: /my-blog-post
---
# My blog post
Yesterday I was dreaming about...当前版本的典型工作流程是检索给定标签的最新内容,然后讨论使用该标签:
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.您可能会合理地问“为什么不直接将整个博客上传到上下文窗口?”并且该库在两个方面优于这种方法:
我的博客语料库比目前大多数模型的上下文窗口要大得多。此外,即使上下文窗口变得非常大,我过去也写了很多平庸的东西,所以也许省略它也是一个特点。
我有许多不同的 Markdown 知识库,这使我可以同时操作它们。
最后,这是一个业余项目,旨在在您的笔记本电脑上本地运行。目前为止,还没有人因使用该软件而受到伤害,但它确实运行良好!
工具
该 MCP 服务器公开了这些工具。
内容搜索工具
用于将内容检索到上下文窗口中的工具:
get_by_tag- 通过标签检索内容get_by_text- 搜索内容中的特定文本get_by_slug_or_url- 通过 slug 或 URL 查找帖子get_by_date_range- 获取在某个日期范围内发布的帖子
标签管理工具
浏览知识库的工具:
search_tags- 搜索与查询匹配的标签list_all_tags- 列出按帖子数和新近度排序的所有标签
维护工具
处理运行该工具的工具:
rebuild- 重建内容索引,如果您添加了更多内容、编辑了现有内容等,则很有用
设置/安装
这些说明描述了在 OS X 上安装Claude Desktop的方法。它在其他平台上应该可以类似地工作。
安装Claude Desktop 。
将library-mcp克隆到一个方便的位置,我假设是
/Users/will/library-mcp确保你已经安装了
uv,你可以按照这些说明进行操作前往 Cladue 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" ] } } }关闭 Claude 并重新打开它。
它应该可以工作...
Available Tools
7 toolsget_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
Scored across 7 tools
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.
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.
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.
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.
Maintenance
Related MCP Connectors
KnowMan MCP server: search, ask, save and read your Knowledge Base from any MCP client.
Markdown-based note-taking with a hosted MCP server. Your notes serve you and your AI.
Serve a folder of Markdown notes as an MCP server: hybrid search, reading, and sourced answers.
Personal knowledge base MCP server with semantic search, auto-categorization, metadata extraction
Related MCP Servers
- AlicenseBqualityDmaintenanceA 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.3MIT
- AlicenseAqualityDmaintenanceAn 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.9MIT
- FlicenseNot gradedqualityCmaintenanceMCP server that enables full-text search and link navigation over Markdown files as a knowledge graph.-
- FlicenseNot gradedqualityDmaintenanceA CLI tool and MCP server that turns markdown documentation into a searchable, queryable knowledge base.-