
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
コンテキストAIを用いたRAG(Retrieval-Augmented generation)機能を提供するモデルコンテキストプロトコル(MCP)サーバー。 様々なMCPクライアントと連携するサーバーです.
概要
コンテキストAIを用いたRAG(Retrieval-Augmented generation)機能を提供するモデルコンテキストプロトコル(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. : ドメイン固有の質問を専用のコンテクチュアルAIエージェントに指示します 2. : 知識ベース3の包括的な情報から検索します.
概要(AI 翻訳)
コンテキストAIを用いたRAG(Retrieval-Augmented generation)機能を提供するモデルコンテキストプロトコル(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.インテリジェントリトリバル:あなたの知識ベースで包括的な情報から検索 3.Context-Awareの応答: 回答を生成します:
- ソースの文書に接地
- 引用と帰属を含める
- 会話のコンテキストを維持
##インテグレーションフロー
前提条件
- Python 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:
- Query Processing: Direct your domain specific questions to a dedicated Contextual AI agent
- Intelligent Retrieval: Searches through comprehensive information in your knowledge base
- 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
- Clone the repository:
git clone https://github.com/ContextualAI/contextual-mcp-server.git
cd contextual-mcp-server
- Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate # On Windows, use `.venv\Scripts\activate`
- 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 keyAGENT_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.
インストール
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