Python Jira MCP サーバー
Jira APIと統合されたPythonによるモデルコンテキストプロトコル(MCP)サーバー実装。これにより、AIモデルは標準化されたプロトコルを介してJiraと連携できるようになります。
概要
このMCPサーバーは、Jira API操作を、モデルコンテキストプロトコルをサポートするAIモデルで使用できるツールとして公開します。このサーバーは、Cursorなどのクライアントと通信するためのstdioトランスポートメカニズムを実装しています。
特徴
- JQL 検索ツール: JQL クエリを使用して Jira の問題を検索します
- 問題取得ツール: 特定の Jira 問題に関する詳細情報を取得します
- MCP SDK統合:公式MCP Python SDKと互換性があります
- フォールバックモード: SDKが利用できない場合の最小限の実装
- 環境設定: 環境変数から Jira の資格情報を読み込む
要件
- Python 3.8以上
- Jira API アクセス (API トークン、メール、ドメイン)
- 必要な Python パッケージ:
mcp
(モデルコンテキストプロトコル Python SDK)aiohttp
(HTTP リクエスト用)pydantic
(検証用)python-dotenv
(環境変数用)
インストール
- このリポジトリをクローンします:
- 依存関係をインストールします。
- Jira の資格情報を設定します。
使用法
サーバーの実行
MCP サーバーを起動するには、次のコマンドを実行します。
または、実行可能ファイルを直接使用します。
サーバーが起動し、標準入力 (stdin) で MCP メッセージをリッスンし、標準出力 (stdout) で応答します。
カーソルとの統合
この MCP サーバーを Cursor で使用するには:
- サーバーを起動します(上記の通り)
- カーソルで、MCPサーバのパスを
main.py
を指すように設定します。 - カーソル内で直接 Jira ツールを使用する
利用可能なツール
JQL検索
JQL (Jira クエリ言語) を使用して Jira の問題を検索します。
例:
問題を取得
特定の Jira 問題の詳細を ID またはキーで取得します。
例:
発達
プロジェクト構造
main.py
: MCPサーバーのエントリポイントsrc/server.py
: メインMCPサーバーの実装src/tools/jira_tools.py
: Jira API ツールの実装src/tool_schemas.py
: ツールスキーマの定義
新しいツールの追加
新しい Jira 関連ツールを追加するには:
src/tools/jira_tools.py
にツール関数を実装します。src/tool_schemas.py
にツールスキーマを追加します。src/server.py
にツールを登録する
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細については LICENSE ファイルを参照してください。
謝辞
This server cannot be installed
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.
AI モデルがモデル コンテキスト プロトコルを介して Jira と対話し、JQL 検索や問題の詳細の取得などのタスクを実行できるようにするサーバー実装。
Related Resources
Related MCP Servers
- -securityFlicense-qualityEnables AI models to interact with Jira using a standardized protocol, offering full Jira REST API integration with features like optimal performance through connection pooling, error handling, and request monitoring.Last updated -2TypeScript
- AsecurityFlicenseAqualityA Model Context Protocol server that enables integration with JIRA, allowing users to interact with JIRA tasks and issues through Claude AI assistant.Last updated -32Python
- -securityAlicense-qualityA Model Context Protocol server that enables AI assistants like Claude to interact with Jira, allowing for project management tasks such as listing projects, searching issues, creating tickets, and managing sprints through natural language queries.Last updated -151TypeScriptMIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that enables ChatGPT and other AI assistants to directly interact with JIRA issues, currently offering the ability to retrieve issue details.Last updated -TypeScript