MCP-RAG Server
mcp-rag
MCP を介して RAG アプリケーションを open-webui に接続する
1. ベアボーンMCP PoC / Hello World
pip install mcp[cli]SSEスニペットに関するドキュメントを調べる
uvicornを使用してサーバーを実行する
動作しません -> MCP ウェブサイトとは異なる
SseServerTranpsortクラスのドキュメントを参照してくださいstarlette_appのルート -> マウントを変更すると動作します
starletteは307の一時的なリダイレクトを返すが、curlでテストすると、末尾のスラッシュがないことが原因であることがわかった。
githubリポジトリで調べたところ、ルートはサーバコードの末尾にスラッシュで終わっており、特に
sse = SseServerTransport("/messages/")の部分はクライアントに何を呼び出すかを伝えていると思われます。プロンプトをいくつか追加してクライアント側で確認する
記事
open-webuiで使用するRAGプロトタイプの実験を行っていたので、モデルコンテキストプロトコルを試してみたいと思っています。MCPはLSPに似ています。サーバーとクライアントが同じマシン上に存在しないため、SSEトランスポートを使用する必要があります。
MCPの公式ドキュメントにはいくつかのスニペットが付属していますが、mcp Pythonライブラリが提供するドキュメント文字列に従って、少し調整する必要がありました。動作させるまでに少し時間がかかり、最初はサーバーが間違ったエンドポイントを送信していたため、307 Temporary Redirectエラーが発生していました。
テストしてみましょう!サーバーとやり取りできる小さなREPLを構築しましょう
ゴール
MCPとは何かを理解する
シンプルなサーバーとクライアントを実装する
関数呼び出し/ツールの使用を試してみる
Related MCP server: MCP SSE Ory Server
2. 基本的な知識ベースを実装する
MCP サーバーに貼り付けて、クライアントを介して呼び出してコンテキストを取得できるシンプルな KnowledgeBase を構築したいと考えています。
3. MCPクライアント + Open-WebUI
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Server-Sent Events implementation using FastAPI framework that integrates Model Context Protocol (MCP), allowing AI models to access external tools and data sources like weather information.51MIT

MCP SSE Ory Serverofficial
AlicenseNot gradedqualityDmaintenanceImplements a Model Context Protocol server using Server-Sent Events for real-time communication with OAuth 2.1 integration via Ory Network, enabling secure AI model communication with authentication and client management.Apache 2.0- FlicenseNot gradedqualityNot gradedmaintenanceA Model Context Protocol (MCP) server implementation that uses Server-Sent Events (SSE) to enable real-time, server-pushed updates between AI models and tools over HTTP connections.1
- AlicenseNot gradedqualityDmaintenanceEnables MCP clients to connect to LLM/API services using the Model Context Protocol, providing real-time interaction and tool access. Also offers RESTful API endpoints via FastAPI for programmatic integration with existing systems.Apache 2.0
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
Connect AI agents to Replynodes over the Model Context Protocol.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/felixscherz/mcp-rag'
If you have feedback or need assistance with the MCP directory API, please join our Discord server