openstax-llm-mcp

v0.1.0
openstax-llm-mcp Checked 4 days ago Published 2 months ago

Model Context Protocol server exposing openstax-llm pedagogical textbook chunking

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_catalog

Search the OpenStax textbook catalog. Use this first to turn a subject ("calculus", "physics") into a canonical slug that the other tools accept. An empty query lists the catalog from the top. Args: query: Keyword matched against slug, title, repository, and category. limit: Maximum number of results to return, ordered by relevance.

ParameterTypeDescription
query *string
limitinteger

inspect_textbook

Report chunk statistics and a per-section index for a textbook. Cheap relative to `prepare_textbook` and writes nothing to disk. Use it to choose a section worth retrieving, or to size a dataset before exporting it. Args: target: Catalog slug (e.g. `calculus-volume-1`) or path to a local bundle. target_words: Soft target words per chunk. max_words: Hard ceiling on words per chunk. overlap: Words of overlap carried between adjacent chunks.

ParameterTypeDescription
target *string
max_wordsinteger
overlapinteger
target_wordsinteger

prepare_textbook

Compile a textbook, chunk it, and export a JSONL dataset for RAG or fine-tuning. Each line is one chunk record with intact LaTeX and full citation metadata. The destination must resolve inside the server's configured output directory. Args: target: Catalog slug (e.g. `calculus-volume-1`) or path to a local bundle. out: Destination JSONL path, relative to the server output directory. target_words: Soft target words per chunk. max_words: Hard ceiling on words per chunk. overlap: Words of overlap carried between…

ParameterTypeDescription
out *string
target *string
max_wordsinteger
overlapinteger
target_wordsinteger