Skip to main content
Glama

opcua-mcp

OPC UA MCP サーバー

OPC UA 対応の産業システムに接続し、AI エージェントが運用データをリアルタイムで監視、分析、制御できるようにする MCP サーバー。

このプロジェクトは、AI 主導のワークフローと産業オートメーション システムを結び付けたいと考えている開発者やエンジニアに最適です。

GitHubライセンスPythonバージョン状態

特徴

  • OPC UA ノードの読み取り: 産業用デバイスからリアルタイムの値を取得します。
  • OPC UA ノードへの書き込み: 指定されたノードに値を書き込むことでデバイスを制御します。
  • シームレスな統合: Claude Desktop などの MCP クライアントと連携して自然言語による対話を実現します。

ツール

サーバーは 2 つのツールを公開します。

  • read_opcua_node :
    • 説明: 特定の OPC UA ノードの値を読み取ります。
    • パラメータ:
      • node_id (str): OPC UA ノード ID (例: ns=2;i=2 )。
    • 戻り値: ノード ID とその値を含む文字列 (例: "Node ns=2;i=2 value: 42")。
  • write_opcua_node :
    • 説明: 特定の OPC UA ノードに値を書き込みます。
    • パラメータ:
      • node_id (str): OPC UA ノード ID (例: ns=2;i=3 )。
      • value (str): 書き込む値(ノード タイプに基づいて変換されます)。
    • 戻り値: 成功またはエラー メッセージ (例: 「ノード ns=2;i=3 に 100 を正常に書き込みました」)。

プロンプトの例

  • 「ノード ns=2;i=2 の値は何ですか?」 → 現在の値を返します。
  • 「ノード ns=2;i=3 を 100 に設定します。」→ ノードに 100 を書き込みます。

インストール

前提条件

  • Python 3.10以上
  • OPC UA サーバー (シミュレーターや実際の産業用デバイスなど)

依存関係をインストールする

リポジトリをクローンし、必要な Python パッケージをインストールします。

git clone https://github.com/kukapay/opcua-mcp.git cd opcua-mcp pip install asyncua mcp[cli]

MCP クライアント構成

{ "mcpServers": { "opcua-mcp": { "command": "python", "args": ["path/to/opcua_mcp/main.py"], "env": { "OPCUA_SERVER_URL": "your-opc-ua-server-url" } } } }

ライセンス

このプロジェクトはMITライセンスの下で提供されています。詳細はLICENSEファイルをご覧ください。

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

OPC UA 対応の産業オートメーション システムに接続する MCP サーバー。

  1. 特徴
    1. ツール
    2. プロンプトの例
  2. インストール
    1. 前提条件
    2. 依存関係をインストールする
    3. MCP クライアント構成
  3. ライセンス

    Related MCP Servers

    • -
      security
      A
      license
      -
      quality
      A simple MCP server for interacting with OpenAI assistants. This server allows other tools (like Claude Desktop) to create and interact with OpenAI assistants through the Model Context Protocol.
      Last updated -
      33
      Python
      MIT License
      • Apple
    • -
      security
      A
      license
      -
      quality
      An MCP server implementation that integrates with Odoo ERP systems, enabling AI assistants to interact with Odoo data and functionality through the Model Context Protocol.
      Last updated -
      186
      Python
      MIT License
    • A
      security
      F
      license
      A
      quality
      An MCP server that enables AI agents to authenticate with and interact with Open eClass platform instances, supporting UoA's SSO authentication system for retrieving course information and performing basic platform operations.
      Last updated -
      4
      5
      Python
    • A
      security
      A
      license
      A
      quality
      A unified control center for managing MCP servers, providing tooling for environment variable management, profile-based configurations, and local package installation automation.
      Last updated -
      24
      1
      TypeScript
      MIT License

    View all related MCP servers

    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/kukapay/opcua-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server