loading…
Search for a command to run...
loading…
A security-focused MCP server that enables automated log retrieval and threat analysis using LangGraph orchestration and RAG. It allows users to detect suspicio
A security-focused MCP server that enables automated log retrieval and threat analysis using LangGraph orchestration and RAG. It allows users to detect suspicious activity and generate structured security insights by integrating LLM reasoning with log data and runbook documentation.
This guide explains:
• utilities & frameworks used
• how each component fits in the architecture
• step‑by‑step Windows local setup
• how MCP, RAG, LangGraph, Guardrails & LLM integrate
• basic → advanced usage flow
User → Streamlit UI → LangGraph Agent
│
▼
┌────────────────────────────┐
│ AGENT ORCHESTRATION │
│ LangGraph │
└────────────┬───────────────┘
│
┌────────────┼─────────────┐
▼ ▼ ▼
Log Fetch Runbook RAG Detection Engine
(MCP API) (Vector DB) (Pattern Logic)
│ │ │
└────────────┴─────────────┘
▼
LLM Reasoning Layer
(OpenRouter / Llama3)
▼
Guardrails Validation
(Pydantic)
▼
Structured Response
Primary runtime for orchestration and services.
Used for reasoning over logs and generating security findings.
Provides embedding and vector search integration.
Used for deterministic agent orchestration.
✔ stateful workflows
✔ branching logic
✔ production reliability
Observability & debugging for agent flows.
Creates semantic embeddings.
Model:
all-MiniLM-L6-v2
Local vector database storing runbook embeddings.
Provides log access endpoints.
Simulates enterprise log providers like Splunk or Elastic.
Validates LLM output structure.
Prevents malformed responses.
Custom Python detection for:
✔ SSH brute force attempts
✔ suspicious IP activity
Verify:
python --version
git clone https://github.com/vforvishal12/mcp-splunk.git
cd mcp-splunk
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
If needed:
pip install streamlit fastapi uvicorn requests python-dotenv
pip install langchain langgraph chromadb sentence-transformers
pip install openai pydantic
Create .env
OPENAI_API_KEY=your_key
Run once:
python
from agent.rag import build_vector_db
build_vector_db()
exit()
uvicorn mcp_server:app --port 9000
Verify:
http://localhost:9000/service_health
streamlit run app.py
Open:
✔ run locally
✔ detect suspicious activity
✔ integrate Splunk/Elastic
✔ stream logs via Kafka
✔ enable LangSmith tracing
✔ deploy via Docker & Kubernetes
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"mcp-splunk": {
"command": "npx",
"args": []
}
}
}