PinRAG (ndjordjevic/pinrag) is an MCP server listed on the M8ven Trust Index. It scores 71 out of 100, grade C. It declares 6 tools. No publisher has claimed this listing.
RAG MCP server for PDFs, YouTube, GitHub repos, and Discord exports. Index documents and query with citations via LangChain and Chroma.
Limited view. Automated analysis covers part of this stack. Findings reflect what we verified. Grades reflect the full trust pyramid: code, verification depth, and reputation. New projects cap at C until adoption is earned.
Limited view: static analysis for Python is partially covered.
How we verified
Verified is a snapshot. Live keeps it current, and builds your track record.
⚡ Connect GitHub → continuous verification on every pushwhy connect →Who stands behind it
ndjordjevic
Source: Glama
Claim it to get a verified publisher badge, a free copy of our full audit findings, and direct contact for any high-priority issues we find. Or connect your repo for our deepest verification, Live Monitored: read-only, revoke anytime. What we access →
Install from
The grade above is for the source repository. Registries can serve a different version, so we mark the ones we were not able to read.
TQDM_DISABLEPINRAG_LLM_PROVIDERopenrouter openrouter, openai, anthropic, or cerebrasOPENAI_BASE_URL(optional) Override OpenAI API base URL (e.g. https://openrouter.ai/api/v1 with OPENAI_API_KEY set to your OpenRouter key for vision or other OpenAI-compatible calls).ANTHROPIC_API_KEY(required for Anthropic LLM or Anthropic YouTube vision) Required when PINRAG_LLM_PROVIDER=anthropic, PINRAG_EVALUATOR_PROVIDER=anthropic, or YouTube vision with PINRAG_YT_VISION_PROVIDER=anthropic.OPENROUTER_API_KEY"": "your-openrouter-api-key-here",OPENAI_API_KEY(required for OpenAI LLM or OpenAI YouTube vision) Required when PINRAG_LLM_PROVIDER=openai, or when PINRAG_YT_VISION_ENABLED=true and PINRAG_YT_VISION_PROVIDER=openai.PINRAG_USE_RERANKfalse Set to true to enable FlashRank re-ranking: fetch more chunks, re-score locally, pass top N to the LLM. Requires pip install pinrag[rerank] and no API key.PINRAG_RETRIEVE_K20 Retrieval pool size when re-ranking is off. When re-ranking is on, PINRAG_RERANK_RETRIEVE_K falls back to this value if unset, then results are cut to PINRAG_RERANK_TOP_N.PINRAG_CEREBRAS_BASE_URLPINRAG_LLM_MODELOPENROUTER_APP_TITLEPinRAG App title (X-Title). Override to label usage in the OpenRouter dashboard. PinRAG copies this into OPENROUTER_X_OPEN_ROUTER_TITLE for the SDK.OPENROUTER_HTTP_REFEREROPENROUTER_X_OPEN_ROUTER_TITLEOPENROUTER_APP_TITLE PinRAG App title (X-Title). Override to label usage in the OpenRouter dashboard. PinRAG copies this into for the SDK.PINRAG_OPENROUTER_MODEL_FALLBACKSPINRAG_LLM_MODEL_FALLBACKSPINRAG_OPENROUTER_SORTPINRAG_OPENROUTER_PROVIDER_ORDERPINRAG_EVALUATOR_PROVIDERANTHROPIC_API_KEY (required for Anthropic LLM or Anthropic YouTube vision) Required when PINRAG_LLM_PROVIDER=anthropic, =anthropic, or YouTube vision with PINRAG_YT_VISION_PROVIDER=anthropic.PINRAG_EMBEDDING_MODELLocal embeddings — Nomic (, default nomic-embed-text-v1.5); no API key; first run downloads model weights (~270 MB, cached)PINRAG_PERSIST_DIR"": "/absolute/path/to/your/pinrag-data"PINRAG_COLLECTION_NAMEMCP tools — add_document_tool, query_tool, list_documents_tool, remove_document_tool, set_document_tag_tool, list_collections_tool; optional collection on tools overrides for that callPINRAG_CHUNK_SIZE1000 Text chunk size (chars)PINRAG_CHUNK_OVERLAP200 Chunk overlap (chars)PINRAG_RERANK_RETRIEVE_KPINRAG_RETRIEVE_K 20 Retrieval pool size when re-ranking is off. When re-ranking is on, falls back to this value if unset, then results are cut to PINRAG_RERANK_TOP_N.PINRAG_RERANK_TOP_NPINRAG_RETRIEVE_K 20 Retrieval pool size when re-ranking is off. When re-ranking is on, PINRAG_RERANK_RETRIEVE_K falls back to this value if unset, then results are cut to .PINRAG_USE_MULTI_QUERYfalse Set to true to generate alternative phrasings of the user query via LLM, retrieve per variant, and merge (unique union). Improves recall for terse or ambiguous queries.PINRAG_MULTI_QUERY_COUNT4 Number of alternative queries to generate (default 4, max 10). The original query is still included in retrieval when merging.PINRAG_USE_PARENT_CHILDfalse Set to true to embed small chunks and return larger parent chunks (supported for PDF, GitHub, YouTube, and Discord indexing—not plain .txt). Requires re-indexing.PINRAG_PARENT_CHUNK_SIZE2000 Parent chunk size (chars) when PINRAG_USE_PARENT_CHILD=true.PINRAG_CHILD_CHUNK_SIZE800 Child chunk size (chars) when PINRAG_USE_PARENT_CHILD=true.PINRAG_RESPONSE_STYLEQuery with filters query_tool — required query. Optional document_id, tag, document_type, page_min / page_max (PDF ranges), response_style (thorough or concise; leave empty to use ).PINRAG_STRUCTURE_AWARE_CHUNKINGtrue Apply structure-aware chunking heuristics for code/table boundariesPINRAG_VERBOSE_LOGGINGFor MCP-side introspection, set =true to surface detailed phase events in notifications/message (e.g., YouTube transcript load, whether vision runs, and chunk upsert milestones).GITHUB_TOKEN(optional) Personal access token for GitHub API. Required for private repos; increases rate limits for public repos.PINRAG_GITHUB_MAX_FILE_BYTES524288 (512 KB) Skip files larger than this when indexing GitHub repos.PINRAG_GITHUB_DEFAULT_BRANCHmain Default branch when not specified in the GitHub URL.PINRAG_WEB_USER_AGENTPinRAGBot/<version> (+https://github.com/ndjordjevic/pinrag) HTTP User-Agent header for web indexing. Some sites block generic bots; override if needed.PINRAG_PLAINTEXT_MAX_FILE_BYTES524288 (512 KB) Skip plain .txt files larger than this when indexing.PINRAG_YT_PROXY_HTTP_URL(none) HTTP proxy URL for transcript fetches (e.g. http://user:pass@proxy:80). Use when YouTube blocks your IP.PINRAG_YT_PROXY_HTTPS_URL(none) HTTPS proxy URL for transcript fetches. Same as HTTP when using a generic proxy.PINRAG_YT_VISION_ENABLEDOPENAI_API_KEY (required for OpenAI LLM or OpenAI YouTube vision) Required when PINRAG_LLM_PROVIDER=openai, or when =true and PINRAG_YT_VISION_PROVIDER=openai.PINRAG_YT_VISION_PROVIDEROPENAI_API_KEY (required for OpenAI LLM or OpenAI YouTube vision) Required when PINRAG_LLM_PROVIDER=openai, or when PINRAG_YT_VISION_ENABLED=true and =openai.PINRAG_YT_VISION_MODEL(per provider) If unset: OpenAI gpt-4o-mini, Anthropic claude-sonnet-4-6, OpenRouter google/gemini-2.5-flash. Use a vision-capable id. Legacy alias: PINRAG_VISION_MODEL.PINRAG_VISION_MODELPINRAG_YT_VISION_MODEL (per provider) If unset: OpenAI gpt-4o-mini, Anthropic claude-sonnet-4-6, OpenRouter google/gemini-2.5-flash. Use a vision-capable id. Legacy alias: .PINRAG_YT_VISION_MAX_FRAMES8 Download + frame path only (openai / anthropic): cap analyzed keyframes after scene detect. Ignored for openrouter (single video request).PINRAG_YT_VISION_MIN_SCENE_SCORE27.0 Download + frame path only: PySceneDetect AdaptiveDetector threshold (higher → fewer cuts). Ignored for openrouter.PINRAG_YT_VISION_IMAGE_DETAILlow OpenAI frame path only: low, high, or auto for image_url.detail. Ignored for anthropic (full frames) and openrouter (video_url).CEREBRAS_API_KEY(required for Cerebras LLM) Required when PINRAG_LLM_PROVIDER=cerebras. Get a key from the [Cerebras cloud console](https://cloud.cerebras.ai).OPENROUTER_APP_URLTool annotations
No tools have read-only/destructive annotations
Add readOnlyHint or destructiveHint annotations to every tool so hosts can warn users before invoking.
All four hints declared on every tool
6/6 tools missing one or more hints — query_tool (missing: readOnlyHint, destructiveHint, idempotentHint, openWorldHint); add_document_tool (missing: readOnlyHint, destructiveHint, idempotentHint, openWorldHint); list_documents_tool (missing: readOnlyHint, destructiveHint, idempotentHint, openWorldHint), +3 more. OpenAI's directory rejects tools where any of the four hints are missing or non-boolean.
For every tool, set all four hints (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) to explicit true/false values that match the handler’s actual behaviour.
Tool handlers catch errors
5/6 tool handlers wrap calls in try/catch (83%)
Wrap each tool handler body in try/catch and return a structured error response.
Tests exist
No test files found
Add tests that exercise each declared tool.
Claim the listing to review these findings one by one and send us a correction where you disagree, straight to the team. Claiming also means we tell you when the grade moves, and reach you first if we find anything urgent.
[](https://m8ven.ai/mcp/ndjordjevic/pinrag)?variant=verified to the badge URL.Vetting this one by hand? Tool Check is an MCP that scores other MCPs. Add it once and ask Claude, ChatGPT, or any MCP client to grade a server, surface CVEs, check the publisher, and suggest safer alternatives — before you install.
https://m8ven.ai/api/mcp/tool-check