MCP Python Server
MCP(モデルコンテキストプロトコル)実装
概要
このプロジェクトは、Pythonのサーバークライアントアーキテクチャを用いてモデルコンテキストプロトコル(MCP)を実装します。MCPサーバーはモデルコンテキスト管理に関連するリクエストを処理し、MCPクライアントはサーバーと対話してデータの送受信を行います。
Related MCP server: MCP Server Demo
前提条件
Python 3.x
環境の設定
仮想環境を作成するターミナルを開き、プロジェクトディレクトリに移動します。以下のコマンドを実行して仮想環境を作成します。
python -m venv venv仮想環境をアクティブ化する
Windowsの場合:
venv\Scripts\activatemacOS/Linuxの場合:
source venv/bin/activate
必要なパッケージをインストールする仮想環境をアクティブ化した後、次のコマンドを使用して必要なパッケージをインストールします。
pip install -r requirements.txt
アプリケーションの実行
**MCPサーバーを起動します。**仮想環境が有効化されている状態でターミナルを開き、
mcp_server.pyがあるディレクトリに移動します。以下のコマンドを実行します。python mcp_server.py**MCPクライアントを起動します。**仮想環境がアクティブになっている状態で、別のターミナルウィンドウ(またはタブ)を開き、
mcp_client.pyを含むディレクトリに移動します。以下のコマンドを実行します。python mcp_client.py
使用法
MCP サーバーを起動したら、MCP クライアントを使用してサーバーと対話できます。
貢献
改善やバグ修正が必要な場合は、リポジトリをフォークしてプル リクエストを送信してください。
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。
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
- Alicense-qualityCmaintenanceEnables type-safe, bidirectional communication with Model Context Protocol services, allowing centralized management of model contexts over HTTP.208MIT
- Flicense-qualityDmaintenanceA demonstration implementation of the Model Context Protocol server that facilitates communication between AI models and external tools while maintaining context awareness.
- Alicense-qualityDmaintenanceA Python implementation of the Model Context Protocol that allows applications to provide standardized context for LLMs, enabling creation of servers that expose data and functionality to LLM applications through resources, tools, and prompts.MIT
- Flicense-qualityDmaintenanceA server implementation of the Model Context Protocol (MCP) that provides REST API endpoints for managing and interacting with MCP resources.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
MCP (Model Context Protocol) server for Appwrite
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/jatindera/MCPBasic'
If you have feedback or need assistance with the MCP directory API, please join our Discord server