Custom MCP Server for Cursor

by Feustey
Verified

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Enables configuration of environment variables for API keys and other settings

  • Enables cloning the repository and pushing changes for deployment

  • Allows forking projects, creating branches, committing changes, and opening pull requests for contribution

MCP - RAG を使用した質問応答システム

MCP は、検索拡張生成 (RAG) 技術を使用して、ドキュメントのコーパスに基づいて正確で文脈に沿った回答を提供する高度な質問応答システムです。

特徴

  • 🔍 ドキュメント内のセマンティック検索
  • 💾 Redis によるスマートキャッシュ
  • 📊 MongoDB による永続ストレージ
  • 🤖 埋め込みとテキスト生成のための OpenAI との統合
  • 📈 システム監視とメトリクス
  • 🔄非同期操作管理

前提条件

  • Python 3.9以上
  • MongoDB コミュニティエディション
  • レディス
  • OpenAI APIキー

施設

  1. リポジトリをクローンします。
git clone https://github.com/votre-username/mcp.git cd mcp
  1. システム依存関係をインストールします。
# MongoDB brew tap mongodb/brew brew install mongodb-community brew services start mongodb-community # Redis brew install redis brew services start redis
  1. Python 環境を設定します。
python -m venv .venv source .venv/bin/activate # Sur Unix/macOS pip install -r requirements.txt
  1. 環境変数を設定します。
cp .env.example .env # Éditer .env avec vos configurations

すぐに使える

from src.rag import RAGWorkflow # Initialisation rag = RAGWorkflow() # Ingestion de documents await rag.ingest_documents("chemin/vers/documents") # Interrogation response = await rag.query("Votre question ici ?")

ドキュメント

テスト

python -m pytest tests/ -v

プロジェクト構造

mcp/ ├── src/ │ ├── __init__.py │ ├── rag.py # Workflow RAG principal │ ├── models.py # Modèles de données │ ├── mongo_operations.py # Opérations MongoDB │ ├── redis_operations.py # Opérations Redis │ └── database.py # Configuration de la base de données ├── tests/ │ ├── __init__.py │ ├── test_mcp.py │ └── test_mongo_integration.py ├── prompts/ │ ├── system_prompt.txt │ ├── query_prompt.txt │ └── response_prompt.txt ├── docs/ │ ├── installation.md │ ├── usage.md │ ├── architecture.md │ └── api.md ├── requirements.txt ├── .env.example └── README.md

貢献

  1. プロジェクトをフォークする
  2. 機能用のブランチを作成します( git checkout -b feature/AmazingFeature
  3. 変更をコミットします( git commit -m 'Add some AmazingFeature'
  4. ブランチにプッシュする ( git push origin feature/AmazingFeature )
  5. プルリクエストを開く

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています。詳細については、 LICENSEファイルを参照してください。

接触

あなたの名前 - @your_twitter

プロジェクトリンク: https://github.com/your-username/mcp

-
security - not tested
F
license - not found
-
quality - not tested

Cursor に接続し、LlamaIndex を使用して Linkup および RAG 機能経由でディープ Web 検索を可能にします。

  1. Fonctionnalités
    1. Prérequis
      1. Installation
        1. Utilisation rapide
          1. Documentation
            1. Tests
              1. Structure du projet
                1. Contribution
                  1. Licence
                    1. Contact

                      Appeared in Searches

                      ID: h4brwz5a0d