MedXpert 图书馆连接器(通用版)

v1.0.2
io.github.zhaoxinghua09-cell/medxpert-library-connector Checked 1 day ago Published 15 days ago

Local RAG MCP server for your own .md knowledge base: BM25 + local Ollama, offline, zero egress.

Values you need

VariableWhat it is
LIBRARY_WIKI_DIRoptional Directory of your own .md files. Defaults to the sample wiki bundled in the package.
OLLAMA_BASE_URLoptional Local Ollama endpoint used for embeddings and generation (default http://127.0.0.1:11434).

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add medxpert-library-connector -- uvx --from medxpert-library-connector==1.0.2 medxpert-library
Add to claude_desktop_config.json
{
  "mcpServers": {
    "medxpert-library-connector": {
      "args": [
        "--from",
        "medxpert-library-connector==1.0.2",
        "medxpert-library"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "medxpert-library-connector": {
      "args": [
        "--from",
        "medxpert-library-connector==1.0.2",
        "medxpert-library"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "medxpert-library-connector": {
      "args": [
        "--from",
        "medxpert-library-connector==1.0.2",
        "medxpert-library"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.medxpert-library-connector]
command = "uvx"
args = ["--from", "medxpert-library-connector==1.0.2", "medxpert-library"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: search_knowledge, get_page, list_sources, ask_knowledge.
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json