MPC Docs Server

Integrations

  • Supports environment variable management for storing API keys required by the MCP server, specifically for storing the Serper API key used for web searches.

  • Retrieves information from LangChain's official documentation, allowing users to search and access relevant documentation snippets through the get_docs tool.

  • Used for visualization of the server's architecture and workflow through diagrams in the documentation.

MPC ドキュメント サーバー

これは、Langchain、Llama Index、OpenAIの公式ドキュメントから情報を取得するためのシンプルなMCP(Model Context Protocol)サーバーです。MCP対応アプリケーションが関連するドキュメントスニペットを検索・取得するためのツールを提供します。

特徴

  • ドキュメントの取得: Langchain、Llama Index、OpenAI の公式ドキュメントからコンテンツを取得します。
  • MCP 互換性: MCP サーバーを実装し、他の MCP 互換アプリケーションと簡単に統合できます。
  • **シンプルなツール:**クエリとライブラリ名を受け入れ、関連するドキュメント スニペットを返すget_docsツールを公開します。

仕組み

はじめる

uv パッケージマネージャーのインストール

MacOS/Linuxの場合:

curl -LsSf https://astral.sh/uv/install.sh | sh

uvコマンドが確実に実行されるように、後でターミナルを再起動してください。

プロジェクトのセットアップ

プロジェクトを作成して初期化します。

# Create a new directory for our project uv init mcp-server cd mcp-server # Create virtual environment and activate it uv venv source .venv/bin/activate # On Windows use: .venv\Scripts\activate # Install dependencies uv add "mcp[cli]" httpx python-dotenv bs4

環境変数

ルート ディレクトリに.envファイルを作成し、以下を追加します。

SERPER_API_KEY=YOUR_SERPER_API_KEY

ウェブ検索機能を使用するには、SERPER APIキーが必要です。Serper.devから取得できます。Serper APIは、関連ドキュメントをウェブで検索するために使用しています。

サーバーの実行

MCP サーバーを起動します。

uv run main.py

サーバーが起動し、接続を受け入れる準備が整います。

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

Langchain、Llama Index、OpenAI の公式ドキュメントから関連するドキュメント スニペットを検索および取得できるシンプルなモデル コンテキスト プロトコル サーバー。

  1. Features
    1. How It Works
      1. Getting Started
        1. Installing uv Package Manager
        2. Project Setup
        3. Environment Variables
        4. Running the Server
      ID: 6zuyj34xru