
nkarasiak/qgis-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
nkarasiak/qgis-mcpは、https://github.com/nkarasiak/qgis-mcp.からインポートされたMCPサーバー候補です。
概要
nkarasiak/qgis-mcpは、https://github.com/nkarasiak/qgis-mcp.からインポートされたMCPサーバー候補です。
概要(AI 翻訳)
QGISをモデルコンテキストプロトコル(MCP)を話す任意のAIエージェントに接続し、エージェントがQGISを直接動かします。レイヤー管理、特徴編集、処理アルゴリズムの実行、マップのレンダリングなどです。
レイヤー管理、フィーチャー編集、処理、レンダリング、スタイリング、レイアウト&アトラス作成、クロスレイヤーSQL、プラグイン開発、システム管理をカバーする125のMCPツール。QGIS 3.28–4.xに対応しています。モデルやクライアントに依存しない:Claude Code、Codex CLI、Gemini CLI、Qwen Code、Kimi Code CLI、GitHub Copilot CLI、opencode、LM Studio、Claude Desktop、Cursor、VS Code、Windsurf、Zedなど、どのMCPクライアントでも動作します。
建築
- QGISプラグイン(
qgis_mcp_plugin/)- QGIS内で動作します。QGISのイベントループ内でJSONコマンドを処理する非ブロッキングTCPソケットサーバーです。 - MCPサーバー(
src/qgis_mcp/server.py) - QGISの外部で動作します。FastMCPを介してQGIS操作をMCPツールとして公開します。
設置
クローンは不要です。QGIS 3.28+とUVが必要です。
1.QGISプラグインをインストールしてください
QGISでは、Plugins > Manage and Install Plugins > QGIS MCP >インストールを検索してください。
QGISを再起動し、QGIS MCPドックウィジェットでサーバー開始をクリックします。
2.コーディングエージェントをつなげてください
クロード符号
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
QGIS MCP
Connect QGIS to any AI agent that speaks the Model Context Protocol (MCP), so the agent drives QGIS directly: manage layers, edit features, run processing algorithms, render maps, and more.
125 MCP tools covering layer management, feature editing, processing, rendering, styling, layout & atlas authoring, cross-layer SQL, plugin development, and system management. Compatible with QGIS 3.28–4.x. Model and client agnostic: any MCP client works, among them Claude Code, Codex CLI, Gemini CLI, Qwen Code, Kimi Code CLI, GitHub Copilot CLI, opencode, LM Studio, Claude Desktop, Cursor, VS Code, Windsurf, Zed, and more.
Architecture
AI agent ←→ MCP Server (FastMCP) ←→ TCP socket ←→ QGIS Plugin (QTimer) ←→ PyQGIS API
- QGIS Plugin (
qgis_mcp_plugin/) - Runs inside QGIS. Non-blocking TCP socket server that processes JSON commands within QGIS’s event loop. - MCP Server (
src/qgis_mcp/server.py) - Runs outside QGIS. Exposes QGIS operations as MCP tools via FastMCP.
Installation
No clone needed. Requires QGIS 3.28+ and uv.
1. Install the QGIS plugin
In QGIS: Plugins > Manage and Install Plugins > search QGIS MCP > Install.
Restart QGIS and click Start Server in the QGIS MCP dock widget.
2. Connect your coding agent
インストール
uvx --from https://github.com/nkarasiak/qgis-mcp/archive/refs/heads/main.zip qgis-mcp-server設定
{
"mcpServers": {
"qgis": {
"command": "uvx",
"args": ["--from", "https://github.com/nkarasiak/qgis-mcp/archive/refs/heads/main.zip", "qgis-mcp-server"]
}
}
}