Ragent

v1.0.0Coding Agentsstable

企业级 Agentic RAG 智能体 - 全链路覆盖文档解析、多路检索、意图识别、问题重写、会话记忆、MCP 工具调用与深度思考。面向真实业务场景,从 0 到 1 完整工程实现。

agentagentic-ragaillmmcp
Share:
2,274
Stars
0
Downloads
0
Weekly
0/5

What is Ragent?

Ragent is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 企业级 agentic rag 智能体 - 全链路覆盖文档解析、多路检索、意图识别、问题重写、会话记忆、mcp 工具调用与深度思考。面向真实业务场景,从 0 到 1 完整工程实现。

企业级 Agentic RAG 智能体 - 全链路覆盖文档解析、多路检索、意图识别、问题重写、会话记忆、MCP 工具调用与深度思考。面向真实业务场景,从 0 到 1 完整工程实现。

This server falls under the Coding Agents category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • 企业级 Agentic RAG 智能体 - 全链路覆盖文档解析、多路检索、意图识别、问题重写、会话记忆、MCP 工具调用

Use Cases

Enterprise agentic RAG with full pipeline
Document parsing, intent recognition, and memory
nageoffer

Maintainer

LicenseApache-2.0
Languagejava
Versionv1.0.0
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx ragent

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Ragent

Ragent is an enterprise-grade Agentic RAG system built with Spring Boot 3 and Spring AI, providing a full-pipeline implementation that covers document parsing, multi-channel parallel retrieval, intent recognition, query rewriting, session memory management, MCP tool invocation, and deep reasoning. It is designed for real business scenarios with production features like three-state circuit breakers, distributed rate limiting, request trace propagation, and automatic model failover. Developers use Ragent as a reference implementation or foundation for building production RAG-based AI agents that go beyond simple question-answering.

Prerequisites

  • Java 21 or higher (JDK 21+) with Maven 3.8+
  • A supported LLM API key (OpenAI-compatible endpoint or configured model provider)
  • A vector database for embeddings (the project integrates with Spring AI's vector store abstraction)
  • Redis for distributed rate limiting, caching, and session management
  • PostgreSQL or compatible relational database for conversation and document metadata
1

Clone the repository

Clone the Ragent repository from GitHub and navigate into the project directory.

git clone https://github.com/nageoffer/ragent.git
cd ragent
2

Configure infrastructure and AI provider

Edit the application configuration to set your database connection, Redis, vector store, and LLM API credentials. The project uses a Maven multi-module structure with framework, infra-ai, and bootstrap layers.

# Edit bootstrap/src/main/resources/application.yml
# Key settings:
# spring.datasource.url, username, password
# spring.redis.host, port
# spring.ai.openai.api-key (or equivalent)
# spring.ai.vectorstore configuration
3

Build the project

Build all Maven modules from the project root. The multi-module structure requires building from the top level.

mvn clean install -DskipTests
4

Run the application

Start the Spring Boot bootstrap module to launch the full Ragent server including the RAG pipeline, MCP tool integration, and REST/SSE APIs.

mvn spring-boot:run -pl bootstrap
5

Ingest documents into the knowledge base

Upload documents through the REST API. The ingestion pipeline will parse, chunk, embed, and store them in the vector database for retrieval.

curl -X POST http://localhost:8080/api/document/upload \
  -H 'Content-Type: multipart/form-data' \
  -F '[email protected]'
6

Configure MCP tool integration

Ragent supports MCP tool calling for extending agent capabilities with external services. Configure MCP server connections in the application properties to enable business tool invocation during RAG conversations.

{
  "mcpServers": {
    "ragent": {
      "command": "npx",
      "args": ["ragent"]
    }
  }
}

Ragent Examples

Client configuration

MCP client configuration for connecting to the Ragent server.

{
  "mcpServers": {
    "ragent": {
      "command": "npx",
      "args": ["ragent"]
    }
  }
}

Prompts to try

Example prompts that exercise Ragent's multi-channel retrieval, intent recognition, and session memory capabilities.

- "Based on the uploaded documentation, what is the process for onboarding a new enterprise customer?"
- "Compare the information in document A versus document B on the topic of data security."
- "Summarize our conversation so far and then answer my next question with that context in mind."
- "Search across all knowledge bases and find information about API rate limits."
- "What tools do you have access to and how can you help me with business process automation?"

Troubleshooting Ragent

Application fails to start with Redis connection error

Ensure Redis is running and accessible at the host/port configured in application.yml. Start Redis with 'redis-server' and verify connectivity with 'redis-cli ping'. Update spring.redis.host and spring.redis.port in the config to match.

Document ingestion completes but retrieval returns no results

Check that the vector store is properly configured and the embedding model API is reachable. Verify that documents were successfully embedded by checking the vector store table for entries. Ensure the embedding model dimensions match the vector store configuration.

Model circuit breaker opens and all requests fail

The three-state circuit breaker trips when the primary model has repeated failures. Check LLM API credentials and rate limits. Configure a fallback model in the application settings so the circuit breaker can route to a backup model automatically.

Frequently Asked Questions about Ragent

What is Ragent?

Ragent is a Model Context Protocol (MCP) server that 企业级 agentic rag 智能体 - 全链路覆盖文档解析、多路检索、意图识别、问题重写、会话记忆、mcp 工具调用与深度思考。面向真实业务场景,从 0 到 1 完整工程实现。 It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Ragent?

Follow the installation instructions on the Ragent GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Ragent?

Ragent works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Ragent free to use?

Yes, Ragent is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.

Browse More Coding Agents MCP Servers

Explore all coding agents servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "ragent": { "command": "npx", "args": ["-y", "ragent"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Ragent?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides