FinRAG-MCP

FinRAG-MCP

Enables secure role-based querying of company documents across different departments (Engineering, Finance, HR, Marketing) with access control that restricts data visibility based on user roles. Provides retrieval-augmented generation with source citations and metadata for trusted corporate knowledge access.

Category
Visit Server

README

FinRAG-MCP

FinRAG-MCP is a Role-Based Access Control (RBAC) Retrieval-Augmented Generation (RAG) system, integrated with the Model Context Protocol (MCP).
It lets you query company documents (Engineering, Finance, HR, Marketing, General) securely — each role only sees what it’s allowed to.

✅ Works with Claude Desktop (MCP tools)
✅ Optional Streamlit UI + FastAPI gateway
✅ Uses Qdrant (local) for vector search
✅ Documents enriched with metadata + citations


🚀 Why this project

  • Secure answers → Employees, Managers, and C-Level see different data (RBAC).
  • Trusted output → Every response includes sources and file chunks.
  • Flexible → Claude MCP integration + standalone UI.
  • Practical → Handles Markdown, CSV, reports, handbooks, financial summaries.

📂 Project Structure

FinRAG-MCP

FinRAG-MCP is a Role-Based Access Control (RBAC) Retrieval-Augmented Generation (RAG) system, integrated with the Model Context Protocol (MCP).
It lets you query company documents (Engineering, Finance, HR, Marketing, General) securely — each role only sees what it’s allowed to.

✅ Works with Claude Desktop (MCP tools)
✅ Optional Streamlit UI + FastAPI gateway
✅ Uses Qdrant (local) for vector search
✅ Documents enriched with metadata + citations


🚀 Why this project

  • Secure answers → Employees, Managers, and C-Level see different data (RBAC).
  • Trusted output → Every response includes sources and file chunks.
  • Flexible → Claude MCP integration + standalone UI.
  • Practical → Handles Markdown, CSV, reports, handbooks, financial summaries.

📂 Project Structure


⚙️ Setup

``bash

Clone repo

git clone https://github.com/YOUR_GITHUB/finrag-mcp.git cd finrag-mcp

Create venv with uv

uv venv .venv source .venv/bin/activate uv sync

Add secrets

cat > env/.env << 'EOF' OPENAI_API_KEY=sk-REPLACE_ME OPENAI_MODEL=gpt-4o-mini EMBED_MODEL=text-embedding-3-large QDRANT_LOCAL_PATH=.qdrant_local QDRANT_COLLECTION_PREFIX=finrag FINRAG_ROLE=EMPLOYEE EOF

Ingest docs

uv run python -m ingest.run_ingest --data-root ./data

Run Options

  1. Claude MCP (Recommended) Open Claude Desktop → Settings → Developer → Local MCP servers Add: Command: .../finrag-mcp/.venv/bin/python Args: -m mcp_server.server Env: from .env Claude can now call tools: set_role("FINANCE") search("Q4 2024 revenue drivers", top_k=5)

Start gateway

uv run uvicorn gateway.app:app --port 8000

Start UI

uv run streamlit run ui/app.py --server.port 8501

Example Queries Employee: “What does the handbook say about leave approval?” Engineering: “List services in the architecture doc.” Finance: “Summarize Q4 revenue drivers.” HR: “What’s the rule for sick leave >2 days?” Marketing: “Which 2024 campaigns had the best ROI?”

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured