CC

contextualai/contextual-mcp-server

Developer tools공식

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

21 stars 7 forks 품질 52 트렌드 0

Contextual AI를 사용하여 RAG(Retrieval-Augmented Generation) 기능을 제공하는 모델 Context Protocol (MCP) 서버. 이 서버는 다양한 MCP 클라이언트와 통합합니다.

개요

Contextual AI를 사용하여 RAG(Retrieval-Augmented Generation) 기능을 제공하는 모델 Context Protocol (MCP) 서버. 이 서버는 다양한 MCP 클라이언트와 통합합니다. 서버에서 제공하는 기능을 결정할 수 있는 유연성을 제공합니다. 이 readme에서 Cursor IDE와 Claude Desktop과 통합을 표시합니다. Contextual AI는 이제 플랫폼 내부의 호스팅 서버를 제공합니다: https://mcp.app.contextual.ai/mcp/ 서버에 연결한 후, 플랫폼 MCP 서버가 제공하는 쿼리와 같은 도구를 사용할 수 있습니다. 완전한 연습을 위해 MCP 사용자 가이드를 확인하십시오. MCP 서버는 AI 인터페이스 (Cursor IDE 또는 Claude Desktop)과 전문 컨텍스트 AI 에이전트 사이의 교량 역할을합니다. 그것은 가능하게 합니다: 1. : 전용 Contextual AI Agent에 대한 도메인 특정 질문을 직접 2. : 지식 베이스에 대한 포괄적 인 정보를 통해 검색 3.

개요(AI 번역)

Contextual AI를 사용하여 RAG(Retrieval-Augmented Generation) 기능을 제공하는 모델 Context Protocol (MCP) 서버. 이 서버는 다양한 MCP 클라이언트와 통합합니다. 서버에서 제공하는 기능을 결정할 수 있는 유연성을 제공합니다. 이 readme에서 Cursor IDE와 Claude Desktop과 통합을 표시합니다.

Contextual AI는 이제 플랫폼 내부의 호스팅 서버를 제공합니다: https://mcp.app.contextual.ai/mcp/ 서버에 연결한 후, 플랫폼 MCP 서버가 제공하는 쿼리와 같은 도구를 사용할 수 있습니다. 완전한 연습을 위해 MCP 사용자 가이드를 확인하십시오.

개요

MCP 서버는 AI 인터페이스 (Cursor IDE 또는 Claude Desktop)과 전문 컨텍스트 AI 에이전트 사이의 교량 역할을합니다. 그것은 가능하게 합니다:

1.Query Processing: 전용 Contextual AI 에이전트에 도메인 특정 질문을 지시 2.Intelligent Retrieval: 지식 베이스의 종합 정보를 통해 검색 3.Context-Aware 응답: 다음과 같은 답변을 생성:

  • 소스 문서의 접지
  • 인용 및 attributions 포함
  • 대화 컨텍스트 유지

통합 흐름

필수품

  • 파이썬 3.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Contextual MCP Server

A Model Context Protocol (MCP) server that provides RAG (Retrieval-Augmented Generation) capabilities using Contextual AI. This server integrates with a variety of MCP clients. It provides flexibility in you can decide what functionality to offer in the server. In this readme, we will show integration with the both Cursor IDE and Claude Desktop.

Contextual AI now offers a hosted server inside the platform available at: https://mcp.app.contextual.ai/mcp/
After you connect to the server, you can use the tools, such as query, provided by the platform MCP server.
For a complete walkthrough, check out the MCP user guide.

Overview

An MCP server acts as a bridge between AI interfaces (Cursor IDE or Claude Desktop) and a specialized Contextual AI agent. It enables:

  1. Query Processing: Direct your domain specific questions to a dedicated Contextual AI agent
  2. Intelligent Retrieval: Searches through comprehensive information in your knowledge base
  3. Context-Aware Responses: Generates answers that are:
  • Grounded in source documentation
  • Include citations and attributions
  • Maintain conversation context

Integration Flow

Cursor/Claude Desktop → MCP Server → Contextual AI RAG Agent
        ↑                  ↓             ↓                         
        └──────────────────┴─────────────┴─────────────── Response with citations

Prerequisites

  • Python 3.10 or higher
  • Cursor IDE and/or Claude Desktop
  • Contextual AI API key
  • MCP-compatible environment

Installation

  1. Clone the repository:
git clone https://github.com/ContextualAI/contextual-mcp-server.git
cd contextual-mcp-server
  1. Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate  # On Windows, use `.venv\Scripts\activate`
  1. Install dependencies:
pip install -e .

Configuration

Configure MCP Server

The server requires modifications of settings or use. For example, the single_agent server should be customized with an appropriate docstring for your RAG Agent.

The docstring for your query tool is critical as it helps the MCP client understand when to route questions to your RAG agent. Make it specific to your knowledge domain. Here is an example:

A research tool focused on financial data on the largest US firms

or

A research tool focused on technical documents for Omaha semiconductors

The server also requires the following settings from your RAG Agent:

  • API_KEY: Your Contextual AI API key
  • AGENT_ID: Your Contextual AI agent ID

If you’d like to store these files in .env file you can specify them like so:

cat > .env << EOF
API_KEY=key...
AGENT_ID=...
EOF

The repo also contains more advance MPC servers for multi-agent systems or a document-agent.

GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

cat > mcp.json << EOF { "mcpServers": { "ContextualAI-TechDocs": { "command": "$UV_PATH", # make sure this is set properly "args": [ "--directory", "\${workspaceFolder}", # Will be replaced with your project path "run", "multi-agent/server.py" ] } } } EOF