enterprise-knowledge-mcp
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., "@enterprise-knowledge-mcpWhat is our remote work policy?"
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.
Enterprise Knowledge Assistant
An Agentic AI Enterprise Knowledge Assistant that answers questions from enterprise policy documents using RAG, LangGraph, MCP, RAGAS, Ollama, and LangSmith.
The system retrieves relevant information from enterprise PDFs, uses a LangGraph workflow to generate a grounded response, evaluates the response using RAGAS, and provides observability through LangSmith.
1. Project Overview
The Enterprise Knowledge Assistant is designed to answer natural-language questions using information contained in enterprise documents.
Instead of relying only on the LLM's pretrained knowledge, the application follows a Retrieval-Augmented Generation workflow:
Enterprise PDF documents are loaded.
Documents are split into smaller chunks.
Chunks are converted into embeddings.
Embeddings are stored in ChromaDB.
A user question is semantically matched against the knowledge base.
The LangGraph Retriever Agent obtains the relevant context through the MCP integration.
The Response Agent generates an answer grounded in the retrieved context.
The Evaluator Agent evaluates the generated answer using RAGAS.
LangSmith provides end-to-end tracing and observability.
Knowledge Sources
The project uses enterprise documents such as:
Remote_Work_Policy.pdfEmployee_Handbook.pdf
Related MCP server: Corporate Tools MCP Server
2. Key Features
Enterprise document question answering
Retrieval-Augmented Generation (RAG)
Semantic search over enterprise documents
ChromaDB vector database
HuggingFace embeddings
LangGraph agent orchestration
Custom MCP server
MCP tool-based enterprise knowledge retrieval
Active MCP usage by the LangGraph Retriever Agent
Ollama LLM inference
gpt-oss:120b-cloudfor response generationRAGAS evaluation
Faithfulness evaluation
Answer Relevancy evaluation
LangSmith tracing and observability
Node-by-node LangGraph execution visibility
Source attribution
Modular Python architecture
3. Architecture Overview
flowchart TD
A[User Question] --> B[LangGraph Orchestrator]
B --> C[Retriever Agent]
C --> D[MCP Client]
D --> E[Custom MCP Server]
E --> F[search_enterprise_knowledge]
F --> G[ChromaDB Vector Search]
G --> H[Relevant Document Chunks]
H --> C
C --> I[Response Agent]
I --> J[gpt-oss:120b-cloud]
J --> K[Evaluator Agent]
K --> L[RAGAS]
L --> M[Final Answer + Evaluation]
B -. tracing .-> N[LangSmith]High-Level Flow
User Question
|
v
LangGraph
|
v
Retriever Agent
|
v
MCP Client
|
v
MCP Server
|
v
search_enterprise_knowledge
|
v
ChromaDB
|
v
Retrieved Context
|
v
Response Agent
|
v
gpt-oss:120b-cloud
|
v
Evaluator Agent
|
v
RAGAS
|
v
Final Answer4. Technology Stack
Technology Purpose
Python Core application
LangChain LLM and RAG components
LangGraph Agent workflow orchestration
ChromaDB Vector database
HuggingFace Document embeddings
Ollama LLM inference interface
gpt-oss:120b-cloud Response generation
qwen3:4b Evaluation model
RAGAS RAG evaluation
MCP Tool-based knowledge access
LangSmith Observability and tracing
PyPDF PDF document loading
python-dotenv Environment configuration
5. Project Structure
enterprise-knowledge-assistant/
│
├── data/
│ ├── Remote_Work_Policy.pdf
│ └── Employee_Handbook.pdf
│
├── chroma_db/
│
├── mcp_server/
│ └── server.py
│
├── src/
│ ├── agents/
│ │ ├── retriever_agent.py
│ │ ├── response_agent.py
│ │ └── evaluator_agent.py
│ │
│ ├── rag/
│ │ ├── loader.py
│ │ ├── embeddings.py
│ │ ├── vectorstore.py
│ │ └── retriever.py
│ │
│ ├── graph.py
│ ├── state.py
│ └── config.py
│
├── scripts/
│ ├── ingest.py
│ └── run.py
│
├── screenshots/
│ ├── EKA1.png
│ ├── EKA2.png
│ ├── EKA3.png
│ ├── EKA4.png
│ ├── EKA5.png
│ ├── EKA6.png
│ └── EKA7.png
│
├── .env
├── .gitignore
├── requirements.txt
└── README.mdKeep
.envout of source control. API keys and secrets must never be committed to GitHub.
6. RAG Design
6.1 Document Source
The knowledge base contains enterprise PDF documents:
Remote_Work_Policy.pdf
Employee_Handbook.pdf
Leave_Policy.pdfThe PDFs are loaded using pypdf.
Each page is processed with source and page metadata so retrieved information can be associated with its originating document.
6.2 Document Loading
The ingestion pipeline is:
PDF Documents
|
v
PyPDF
|
v
Page-level Text Extraction
|
v
Source + Page MetadataThe loader extracts text page by page and stores:
document text
source filename
page number
6.3 Chunking Strategy
The project uses RecursiveCharacterTextSplitter.
Current configuration:
chunk_size = 800
chunk_overlap = 120The overlap helps preserve context between neighboring chunks.
Chunking helps to:
improve retrieval precision
reduce unnecessary context
keep prompts manageable
preserve meaningful policy sections
6.4 Embedding Model
The project uses:
BAAI/bge-small-en-v1.5through HuggingFaceEmbeddings.
Embeddings are generated locally using CPU configuration and normalized before similarity search.
6.5 Vector Database
The project uses:
ChromaDBCollection:
enterprise_knowledgePersisted vector database:
./chroma_db6.6 Retrieval
The Retriever performs semantic similarity search against ChromaDB.
The current default retrieval count is:
TOP_K = 4The retrieved chunks are passed to the Response Agent as context.
7. LangGraph Design
LangGraph orchestrates the Agentic AI workflow.
Graph
START
|
v
Retriever Agent
|
v
Response Agent
|
v
Evaluator Agent
|
v
END7.1 Node 1 --- Retriever Agent
Responsibility
Retrieves relevant enterprise knowledge for the user's question.
Processing
Question
|
v
MCP Client
|
v
MCP Server
|
v
search_enterprise_knowledge
|
v
RAG / ChromaDB
|
v
Relevant ContextOutput
Retrieved context
Source information
The Retriever Agent actively calls the MCP tool during normal LangGraph execution.
7.2 Node 2 --- Response Agent
Responsibility
Generates the final answer using the user question and retrieved enterprise context.
Model
gpt-oss:120b-cloudInput
User question
Retrieved context
Output
A grounded natural-language response.
7.3 Node 3 --- Evaluator Agent
Responsibility
Evaluates the generated answer.
Metrics
Faithfulness
Answer Relevancy
The scores and interpretation are added to the final application result.
8. MCP Integration
The project includes a custom MCP server for enterprise knowledge retrieval.
MCP Server
mcp_server/server.pyThe MCP server is implemented using the MCP Python SDK.
MCP Tools
search_enterprise_knowledge
Searches the enterprise knowledge base using a natural-language query.
Example:
search_enterprise_knowledge(
query="What are the key requirements for employees working remotely?"
)get_document_sources
Returns available enterprise document sources.
8.1 Active MCP Usage by LangGraph
This is a key project requirement.
The MCP integration is actively used during normal LangGraph execution. It is not only a standalone server.
The execution flow is:
LangGraph Retriever Agent
|
v
MCP Client
|
v
MCP Server
|
v
search_enterprise_knowledge
|
v
RAG Search
|
v
Retrieved ContextThe application output explicitly confirms the invocation:
NODE 1: RETRIEVER AGENT
Calling MCP tool: search_enterprise_knowledge
MCP retrieval completed.This demonstrates that a LangGraph node actively uses the MCP integration during execution.
8.2 Verify MCP Tools
From the project root:
python -c "import asyncio; from mcp_server.server import mcp; tools=asyncio.run(mcp.list_tools()); print([t.name for t in tools])"Expected:
['search_enterprise_knowledge', 'get_document_sources']9. RAGAS Evaluation
RAGAS evaluates the quality of the generated response.
Metrics Collected
Faithfulness
Measures whether the generated answer is supported by the retrieved context.
Answer Relevancy
Measures whether the generated response addresses the user's question.
Evaluation Flow
Retrieved Context
|
v
Generated Answer
|
+----------------------+
| |
v v
Faithfulness Answer Relevancy
| |
+----------+-----------+
|
v
RAGAS ResultExample Evaluation
A recent successful application execution produced:
Faithfulness: 0.9500
Answer Relevancy: 0.9500
Interpretation: ExcellentScores can vary depending on the question, retrieved context, generated response, evaluation model, and evaluation conditions.
10. LangSmith Observability
LangSmith provides observability into the Agentic AI workflow.
It allows inspection of:
LangGraph execution
Individual graph nodes
LLM calls
Inputs and outputs
Execution latency
Evaluation results
Workflow behavior
Example configuration:
LANGSMITH_TRACING=true
LANGSMITH_API_KEY=<your-langsmith-api-key>
LANGSMITH_PROJECT=enterprise-knowledge-assistantDo not commit the API key to GitHub.
11. Setup Instructions
Prerequisites
Python 3.10+
Ollama
Git
Create Virtual Environment
Windows
python -m venv venv
venv\Scripts\activateLinux/macOS
python3 -m venv venv
source venv/bin/activateInstall Dependencies
python -m pip install -r requirements.txtConfigure Environment
Create .env in the project root:
OLLAMA_BASE_URL=http://localhost:11434
LLM_MODEL=gpt-oss:120b-cloud
EVALUATOR_MODEL=qwen3:4b
EMBEDDING_MODEL=BAAI/bge-small-en-v1.5
VECTOR_DB_PATH=./chroma_db
COLLECTION_NAME=enterprise_knowledge
TOP_K=4
LANGSMITH_TRACING=true
LANGSMITH_API_KEY=<your-langsmith-api-key>
LANGSMITH_PROJECT=enterprise-knowledge-assistant12. Document Ingestion
Place the enterprise PDFs inside:
data/
├── Remote_Work_Policy.pdf
└── Employee_Handbook.pdfRun:
python -m scripts.ingestThe ingestion pipeline is:
PDF
|
v
Text Extraction
|
v
Chunking
|
v
Embedding Generation
|
v
ChromaDB13. Run the Application
After ingestion:
python -m scripts.runYou will see:
============================================================
ENTERPRISE KNOWLEDGE ASSISTANT
============================================================
Ask your question:Enter a natural-language question.
14. Sample Questions
What are the key requirements for employees working remotely?What is the remote work policy?What are the rules regarding working from another city or country?What information security requirements apply to remote workers?What should an employee do if internet or power issues prevent them from working remotely?15. Expected Execution
A successful run follows this sequence:
============================================================
NODE 1: RETRIEVER AGENT
============================================================
Calling MCP tool: search_enterprise_knowledge
MCP retrieval completed.
============================================================
NODE 2: RESPONSE AGENT
============================================================
Generated answer:
...
============================================================
NODE 3: EVALUATOR AGENT
============================================================
Running local evaluation...
EVALUATION RESULTS
----------------------------------------
Faithfulness: 0.9500
Answer Relevancy: 0.9500
Interpretation: ExcellentThe final result contains:
Question
Generated answer
Sources
RAGAS scores
Evaluation interpretation
16. Evidence and Screenshots
Place all screenshots inside the screenshots/ directory.
EKA1 --- LangSmith Observability
Shows LangSmith tracing and observability of the LangGraph workflow.

EKA2 --- Application Startup
Shows application startup and the user question.

EKA3 --- RAGAS Evaluation Results
Shows RAGAS evaluation results.

EKA4 --- Final Application Output
Shows the final answer generated by the application.

EKA5 --- MCP Tool Invocation
Shows the Retriever Agent invoking:
Calling MCP tool: search_enterprise_knowledge
MCP retrieval completed.This is direct evidence that MCP is actively used during graph execution.

EKA6 --- RAGAS Evaluation and Final Result
Shows the Evaluator Agent, Faithfulness, Answer Relevancy, interpretation, and generated result.

EKA7 --- Final Output, Sources and RAGAS
Shows the final answer, MCP source information, and RAGAS scores.

17. Requirement Compliance
The project satisfies the specified Enterprise Knowledge Assistant requirements across RAG, LangGraph, MCP, evaluation, observability, and final response generation.
Requirement | Status | Implementation |
Enterprise Knowledge Source | Satisfied | Enterprise PDF documents are loaded with PyPDF, including |
RAG Implementation | Satisfied | Documents are chunked using recursive text splitting ( |
LangGraph | Satisfied | A |
MCP Integration | Satisfied | A custom MCP server exposes |
RAGAS Evaluation | Satisfied | The Evaluator Agent calculates Faithfulness and Answer Relevancy and displays the evaluation results and interpretation. Example result: 0.95 Faithfulness, 0.95 Answer Relevancy — Excellent. |
Observability | Satisfied | LangSmith tracing provides visibility into LangGraph execution, individual nodes, LLM calls, inputs, outputs, latency, retrieved context, and evaluation results. |
Graph Execution Trace | Satisfied | Node-by-node execution is captured for the Retriever Agent, Response Agent, and Evaluator Agent in both application output and LangSmith. |
Final Application Output | Satisfied | The application produces a grounded final answer containing the user question, generated response, source information, RAGAS scores, and evaluation interpretation. |
Overall Status
All specified project requirements are implemented and satisfied.
The complete workflow is:
Enterprise PDFs → RAG Retrieval → MCP Tool → LangGraph Agents → LLM Response → RAGAS Evaluation → LangSmith Observability → Final Output
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.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables hybrid search over policies using Reciprocal Rank Fusion and provides grounded, context-aware answers via a LangGraph agent with COSTAR prompting.3
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to search HR policies, create IT support tickets, and send external emails with configurable security levels and human-in-the-loop validation.
- FlicenseNot gradedqualityCmaintenanceEnables querying company knowledge base using RAG, providing accurate answers from internal documents via MCP.
- FlicenseNot gradedqualityBmaintenanceEnables SQL query execution and knowledge base search via RAG agent through two tools.
Related MCP Connectors
Your company's brain for AI agents. Cited, permission-aware knowledge across every system.
Shared, permission-aware company context for AI agents, with provenance, approvals and audit.
Search your knowledge bases from any AI assistant using hybrid RAG.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/Shruti-Gorhe/enterprise-knowledge-assistant'
If you have feedback or need assistance with the MCP directory API, please join our Discord server