VB

vmlia/books-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

6 stars 6 forks 质量 31 趋势 14

This is an MCP server used for querying books, and it can be applied in common MCP clients, such as Cherry Studio.

概览

If the network is slow, you can set up a domestic mirror source. : On the setting page of cherry-studio, click on the MCP server, then click "Add Server", and subsequently configure it on the page.

README

Get the Project and Initialize

git clone https://github.com/VmLia/books-mcp-server.git
cd books-mcp-server
uv venv

if macbook or linux

source .venv/bin/activate

if windows

.venv\Scripts\activate.bat

Install Python Packages

uv add "mcp[cli]" httpx openai beautifulsoup4 lxml 

If the network is slow, you can set up a domestic mirror source.

uv add "mcp[cli]" httpx openai beautifulsoup4 lxml --index-url https://pypi.tuna.tsinghua.edu.cn/simple

Example of Using cherry-studio

Method 1: On the setting page of cherry-studio, click on the MCP server, then click “Add Server”, and subsequently configure it on the page.

Type

STDIO

Command

uv

Parameters

--directory
# your project dir
run
main.py

Method 2: Use the configuration parameters

{
  "mcpServers": {
    "books-mcp-server": {
      "name": "books-mcp",
      "type": "stdio",
      "description": "",
      "isActive": true,
      "registryUrl": "",
      "command": "uv",
      "args": [
        "--directory",
        "/Enter your local project directory/books-mcp-server",
        "run",
        "main.py"
      ]
    }
  }
}
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →