Study Prep MCP Server
Enables browsing and preparing study materials from local documents (PDF, Markdown, text, Word) via tools for overview, search, reading, chunking, and quiz generation.
README
Study Prep MCP Server
MCP tools to browse and prepare study materials from a local document folder — PDF, Markdown, plain text, and Word files.
The server extracts text and structure locally; your MCP client (e.g. Cursor) generates summaries and practice questions from the returned content.
Tools
| Tool | What it does |
|---|---|
get_corpus_overview |
Categories, file counts, sizes, supported extensions |
list_documents |
List files with optional category or glob filter |
read_document |
Read or extract text from one file (PDF page range supported) |
search_documents |
Full-text search with snippet context |
extract_key_terms |
Keyword extraction via YAKE (one doc or whole category) |
get_document_outline |
Headings / outline for structured review |
get_study_chunks |
Split long docs into numbered study chunks |
prepare_study_session |
Bundle excerpts, key terms, and AI prompts for a topic |
get_quiz_source_material |
Labeled excerpts + instructions for Q&A generation |
Quick start
git clone https://github.com/YOUR_ORG/study-md-mcp.git
cd study-md-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
# Smoke test on stdio (Ctrl+C to stop)
MD_DOCS_PATH=/path/to/your/study-documents python server.py
Or with uv:
git clone https://github.com/YOUR_ORG/study-md-mcp.git
cd study-md-mcp
uv venv && uv pip install -e .
MD_DOCS_PATH=/path/to/your/study-documents uv run server.py
Environment variables
| Variable | Default | Purpose |
|---|---|---|
MD_MCP_NAME |
study-md |
FastMCP server name |
MD_DOCS_PATH |
. |
Root folder for study documents |
Set MD_DOCS_PATH to the folder containing your study files. On WSL with Windows files, use the /mnt/c/... path.
Connect to Cursor
Copy examples/cursor-mcp-config.json and adjust paths:
{
"mcpServers": {
"study-md": {
"command": "/path/to/study-md-mcp/.venv/bin/python",
"args": ["/path/to/study-md-mcp/server.py"],
"env": {
"MD_MCP_NAME": "study-md",
"MD_DOCS_PATH": "/path/to/your/study-documents"
}
}
}
}
Then ask Cursor to use study-md tools, e.g. “Search my study docs for essay requirements” or “Prepare a study session on offer terms.”
Connect to Claude Desktop (Windows + WSL)
If Claude Desktop runs on Windows but documents live in WSL, see examples/claude-desktop-config.json.
Connect to Claude CLI
claude mcp add study-md \
-e MD_MCP_NAME=study-md \
-e MD_DOCS_PATH=/path/to/your/study-documents \
-- /path/to/study-md-mcp/.venv/bin/python /path/to/study-md-mcp/server.py
Supported formats
| Extension | Method |
|---|---|
.md, .txt |
Direct UTF-8 read |
.pdf |
Text extraction via PyMuPDF |
.docx |
Paragraph text via python-docx |
Scanned/image-only PDFs are not supported (no OCR).
Document layout
Organize files under MD_DOCS_PATH by category subfolder:
study-documents/
├── notes/
├── exams/
├── essays/
└── reference/
Empty category folders appear in get_corpus_overview with count 0.
License
MIT — see LICENSE.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.