# Xianmi Library

> Xianmi Library is a free MCP server for religion. Search and read about 250,000 pages of Chinese Buddhist texts. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** Web, API
- **Website:** https://www.xianmi.co/for-ai/
- **MCP Registry name:** co.xianmi/xianmi
- **Categories:** religion, books and literature
- **Listing updated:** 2026-11-15

## About

Xianmi Library is a free Chinese-language archive of Buddhist literature, and this remote server lets assistants such as Claude or Cursor query it without authentication. The site puts the collection at roughly 120,000 documents, about 247,000 pages counting both Simplified and Traditional editions.

Three tools split the work. search_texts does full-text keyword lookup for exact sentences, names or terms; semantic_search handles natural-language questions but only over the p05 section of modern-Chinese translations; get_passage fetches a page's full Markdown with metadata from its path or URL. The site advises asking conceptual questions through semantic search, then reading the hits with get_passage.

Usage is capped to keep the service free: 800 semantic searches per month, and 5,000 calls a day each for search_texts and get_passage. Assistants are asked to keep the source link and licence note returned with each answer. Content falls into CC0, MIT and public-domain groups, and CBETA-sourced material carries a non-commercial restriction.

## Features

- **Full-text search:** search_texts looks up exact phrases, names and places across the whole library.
- **Semantic search:** semantic_search answers concept questions over the p05 modern-Chinese translations.
- **Page retrieval:** get_passage returns a page's full Markdown with frontmatter.
- **Simplified and Traditional:** Both script editions are searchable via a lang parameter.
- **Agent Skill:** An Agent Skill documents tool choice, fallbacks and citation format.
- **No-MCP routes:** A JSON search API, per-page Markdown files and llms.txt are also offered.

## Good for

- Find the source of a sutra sentence
- Look up a personal or place name across texts
- Ask a concept question like how to ease worry and read the cited passages
- Quote a verse passage with its line breaks preserved

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http xianmi https://mcp.xianmi.co/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://mcp.xianmi.co/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "xianmi": {
      "url": "https://mcp.xianmi.co/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "xianmi": {
      "type": "http",
      "url": "https://mcp.xianmi.co/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "xianmi": {
      "serverUrl": "https://mcp.xianmi.co/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "xianmi": {
      "type": "http",
      "url": "https://mcp.xianmi.co/mcp"
    }
  }
}
```

## Tools

- `search_texts`: Full-text keyword search across the library.
- `get_passage`: Fetch a page's full Markdown by path.
- `semantic_search`: Semantic search over the p05 modern-Chinese translations.

## FAQ

### Does it need authentication?

No; the endpoint is open streamable HTTP.

### What are the usage limits?

Semantic search is 800 calls a month; search_texts and get_passage are 5,000 calls each per day.

### Can I reuse the texts?

Terms depend on the source group (CC0, MIT, public domain); CBETA content is non-commercial, so check before republishing.

### How should answers cite sources?

As title, Xianmi Library (xianmi.co) and the page URL, keeping the source links returned.

### Is Xianmi Library free?

Yes. Xianmi Library is free to use.

### How do I add Xianmi Library to Claude Code?

Run this command in your terminal: claude mcp add --transport http xianmi https://mcp.xianmi.co/mcp

### What are the best alternatives to Xianmi Library?

The closest alternatives to Xianmi Library are 一孔录《论语》 Yikonglu Analects, List Of Books, Madeenan Quran and Hadith Sources, Book Cover Generator and SalahTable.

## Alternatives

- [一孔录《论语》 Yikonglu Analects](https://ai-powered.com/mcp/yikonglu-analects): 一孔录《论语》 Yikonglu Analects is a free MCP server for books and literature.
- [List Of Books](https://ai-powered.com/mcp/list-of-books): List Of Books is a freemium MCP server for books and literature.
- [Madeenan Quran and Hadith Sources](https://ai-powered.com/mcp/madeenan-quran-and-hadith-sources): Madeenan Quran and Hadith Sources is a freemium MCP server for religion.
- [Book Cover Generator](https://ai-powered.com/mcp/book-cover-generator): Book Cover Generator is an open-source MCP server for design and media.
- [SalahTable](https://ai-powered.com/mcp/salahtable): SalahTable is a free MCP server for religion.
- [Shakespeare's Monologues](https://ai-powered.com/mcp/shakespeare-s-monologues): Shakespeare's Monologues is an open-source MCP server for books and literature.
- [Hero of You](https://ai-powered.com/mcp/hero-of-you): Hero of You is a free MCP server for books and literature.
- [INKFLOW Studio](https://ai-powered.com/mcp/inkflow-studio): INKFLOW Studio is a freemium MCP server for books and literature.

---
Source: https://ai-powered.com/mcp/xianmi-library
