rag-mcp for Cursor
io.github.masihmoafi/rag-mcp
Scoped hybrid search (BM25, embeddings, reranking) and grounded answers over local files and folders
client:Cursor
transport:stdio
runtime:pypi
Install rag-mcp in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"rag-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"ragmcp-cli"
],
"env": {
"OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
}
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs