Rag Retrieval
FreeNot checkedEnables retrieval-augmented generation by embedding queries with a chosen provider (e.g., OpenAI) and searching supported vector stores (Pinecone, pgvector) to
About
Enables retrieval-augmented generation by embedding queries with a chosen provider (e.g., OpenAI) and searching supported vector stores (Pinecone, pgvector) to return relevant content.
README
A generic Retrieval-Augmented Generation (RAG) Model Context Protocol (MCP) server with pluggable embedding providers and vector stores.
Why this server?
Vendor MCP servers usually only support their (own) integrated embedding models. If your index uses external embeddings (e.g., OpenAI), those servers can't query it. This server fills that gap — it embeds your query with the provider of your choice, then searches any supported vector store.
Currently Supports
Embedding Providers:
- OpenAI (
text-embedding-3-small,text-embedding-3-large,text-embedding-ada-002, etc.)
Vector Stores:
- Pinecone
- pgvector (PostgreSQL)
Tools
retrieve
Search a knowledge base and return relevant content.
Parameters:
query(string, required) — The search query to find relevant content.
Returns a JSON array of results, each with text, score, and metadata fields.
Install & Run
Run directly with uvx (no install needed):
uvx rag-retrieval-mcp[all]
Or install with pip:
pip install rag-retrieval-mcp[all]
rag-retrieval-mcp
MCP client configuration
{
"mcpServers": {
"rag-retrieval": {
"command": "uvx",
"args": ["rag-retrieval-mcp[all]"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"PINECONE_API_KEY": "your-pinecone-api-key",
"PINECONE_HOST": "your-pinecone-index-host-url"
}
}
}
}
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
RAG_EMBEDDING_PROVIDER |
No | openai |
Embedding provider to use |
RAG_VECTOR_STORE |
No | pinecone |
Vector store to use |
RAG_TOP_K |
No | 5 |
Number of results to return |
OPENAI_API_KEY |
Yes (if using OpenAI) | OpenAI API key | |
OPENAI_EMBEDDING_MODEL |
No | text-embedding-3-small |
OpenAI embedding model |
PINECONE_API_KEY |
Yes (if using Pinecone) | Pinecone API key | |
PINECONE_HOST |
Yes (if using Pinecone) | Pinecone index host URL | |
PINECONE_TEXT_FIELD |
No | text |
Metadata field containing text |
PGVECTOR_CONNECTION_STRING |
Yes (if using pgvector) | PostgreSQL connection string | |
PGVECTOR_TABLE |
No | embeddings |
Table name containing vectors |
PGVECTOR_TEXT_COLUMN |
No | text |
Column containing text content |
PGVECTOR_EMBEDDING_COLUMN |
No | embedding |
Column containing embedding vectors |
Adding New Providers
Implement the EmbeddingProvider or VectorStore abstract base class and register it in server.py's factory function. See src/rag_retrieval_mcp/embedding_providers/base.py and src/rag_retrieval_mcp/vector_stores/base.py for the interfaces.
License
Apache License 2.0
Install Rag Retrieval in Claude Desktop, Claude Code & Cursor
unyly install rag-retrieval-mcpInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add rag-retrieval-mcp -- uvx rag-retrieval-mcpFAQ
Is Rag Retrieval MCP free?
Yes, Rag Retrieval MCP is free — one-click install via Unyly at no cost.
Does Rag Retrieval need an API key?
No, Rag Retrieval runs without API keys or environment variables.
Is Rag Retrieval hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install Rag Retrieval in Claude Desktop, Claude Code or Cursor?
Open Rag Retrieval on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare Rag Retrieval with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
