ragkit
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ragkitscan the current project for prioritized issues"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
RAGKIT
Batteries-included local RAG pipeline โ ingest, index, serve
AI Agents & LLMOps โ build, route, evaluate, and secure agents.
pip install cognis-ragkit
ragkit scan . # โ prioritized findings in seconds๐ Example output
Real, reproducible output from the tool โ runs offline:
$ ragkit-emit --version
ragkit 0.1.0$ ragkit-emit --help
usage: ragkit [-h] [--version] [--format {table,json}]
{index,search,ask,stats} ...
Local RAG pipeline: ingest, index, serve.
positional arguments:
{index,search,ask,stats}
index build an index from files/directories
search retrieve top-k chunks for a query
ask extractive cited answer for a query
stats show index statistics
options:
-h, --help show this help message and exit
--version show program's version number and exit
--format {table,json}
output formatBlocks above are real
ragkitoutput โ reproduce them from a clone.
Sample result format (illustrative values โ run on your own data for real findings):
{
"Findings": [
{
"ID": "12345",
"Title": "Suspicious Activity Detected",
"Description": "An unknown entity accessed our network.",
"Severity": "High"
},
{
"ID": "67890",
"Title": "Malware Infection Found",
"Description": "A virus was detected on a workstation.",
"Severity": "Medium"
}
]
}Related MCP server: Cortex Hub
Usage โ step by step
ragkit is a local, dependency-light RAG pipeline: ingest + TF-IDF index, search, and extractive cited answers. Console script: ragkit.
Install:
pipx install ragkit # or: pip install ragkitBuild an index from files or directories of
.txt/.mddocuments (written to.ragkit/index.jsonby default):ragkit index ./docs --chunk-size 80 --overlap 20Search for the top-k most relevant chunks:
ragkit search "how do retries work" --top-k 5Ask for an extractive, cited answer and read it as JSON (the
--formatflag is global, before the subcommand):ragkit --format json ask "what is the retention policy" --top-k 3 | jq '.answer, .citations'Inspect the index in CI/automation to confirm it built and is fresh:
ragkit --format json stats | jq '.documents, .chunks'
Contents
Why ragkit? ยท Features ยท Quick start ยท Example ยท Architecture ยท AI stack ยท How it compares ยท Integrations ยท Install anywhere ยท Related ยท Contributing
Why ragkit?
self-host RAG
ragkit is single-purpose, scriptable, and self-hostable: point it at a target, get prioritized results in the format your workflow already speaks (table ยท JSON ยท SARIF), gate CI on it, and let agents drive it over MCP.
Features
โ Tokenize
โ Chunk Text
โ Ingest Paths
โ Build Index
โ Save Index
โ Load Index
โ Answer
โ Runs on Linux/macOS/Windows ยท Docker ยท devcontainer
โ Ports in Python, JavaScript, Go, and Rust (
ports/)
Quick start
pip install cognis-ragkit
ragkit --version
ragkit scan . # scan current project
ragkit scan . --format json # machine-readable
ragkit scan . --fail-on high # CI gate (non-zero exit)Example
$ ragkit scan .
[HIGH ] RAG-001 example finding (./src/app.py)
[MEDIUM ] RAG-002 another signal (./config.yaml)
2 findings ยท risk score 5 ยท 38msArchitecture
flowchart LR
IN[sources] --> P[ragkit<br/>curate + validate]
P --> OUT[query / analysis]Use it from any AI stack
ragkit is interoperable with every popular way of using AI:
MCP server โ
ragkit mcp(Claude Desktop, Cursor, Cognis.Studio, uncensored-fleet)OpenAI-compatible / JSON โ pipe
ragkit scan . --format jsoninto any agent or LLMLangChain ยท CrewAI ยท AutoGen ยท LlamaIndex โ wrap the CLI/JSON as a tool in one line
CI / scripts โ exit codes + SARIF for non-AI pipelines
How it compares
Cognis ragkit | RAGFlow | |
Self-hostable, no account | โ | varies |
Single command, zero config | โ | โ ๏ธ |
JSON + SARIF for CI | โ | varies |
MCP-native (AI agents) | โ | โ |
Polyglot ports (JS/Go/Rust) | โ | โ |
Open license | โ COCL | varies |
Built in the spirit of RAGFlow, re-framed the Cognis way. Missing a credit? Open a PR.
Integrations
Pipes into your stack: SARIF for code-scanning, JSON for anything, an MCP server (ragkit mcp) for AI agents, and a webhook forwarder for SIEM/Slack/Jira. See docs/INTEGRATIONS.md.
Install โ every way, every platform
pip install "git+https://github.com/cognis-digital/ragkit.git" # pip (works today)
pipx install "git+https://github.com/cognis-digital/ragkit.git" # isolated CLI
uv tool install "git+https://github.com/cognis-digital/ragkit.git" # uv
pip install cognis-ragkit # PyPI (when published)
docker run --rm ghcr.io/cognis-digital/ragkit:latest --help # Docker
brew install cognis-digital/tap/ragkit # Homebrew tap
curl -fsSL https://raw.githubusercontent.com/cognis-digital/ragkit/main/install.sh | shLinux | macOS | Windows | Docker | Cloud |
|
|
|
| DEPLOY.md (AWS/Azure/GCP/k8s) |
Related Cognis tools
agentsmithโ Config-first scaffolding and orchestration for multi-agent workflowsskillhubโ Local skill registry and installer for AI agentstoolguardโ Runtime allowlist and policy for agent tool-callsevalbenchโ Offline LLM / agent eval harness with regression gatesmemorybankโ Portable long-term memory store for agents, exposed over MCPpromptpackโ Versioned prompt / template registry with A/B and rollbacks
Explore the suite โ ๐๏ธ all 170+ tools ยท โญ awesome-cognis ยท ๐ cognis-sources ยท ๐ค uncensored-fleet ยท ๐ง engram
Contributing
PRs, new rules, and demo scenarios are welcome under the collaboration-pull model โ see CONTRIBUTING.md and SECURITY.md.
โญ If
ragkitsaved you time, star it โ it genuinely helps others find it.
Interoperability
{} composes with the 300+ tool Cognis suite โ JSON in/out and a shared
OpenAI-compatible /v1 backbone. See INTEROP.md for the
suite map, composition patterns, and reference stacks.
License
Source-available under the Cognis Open Collaboration License (COCL) v1.0 โ free for personal, internal-evaluation, research, and educational use; commercial / production use requires a license (licensing@cognis.digital). See LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cognis-digital/ragkit'
If you have feedback or need assistance with the MCP directory API, please join our Discord server