MCP ExplorerExplorer

Safie Api Mcp Server

@SafiePublicon 10 months ago
6 MIT
FreeCommunity
AI Systems
MCP server that enables AI Agents to use images and events from Safie camera devices

Overview

What is Safie Api Mcp Server

safie-api-mcp-server is a Model Context Protocol (MCP) server that allows AI Agents to access and utilize images and events from Safie camera devices.

Use cases

Use cases include monitoring security cameras, integrating camera feeds into AI applications, and automating responses based on events captured by Safie devices.

How to use

To use safie-api-mcp-server, you can either run it with Python and uv or via Docker. For Python, ensure you have Python 3.10+ installed and set the ACCESS_TOKEN in your environment. For Docker, build the image and run it with the necessary environment variables.

Key features

Key features include listing devices, retrieving images from specified devices, accessing media recorded by devices, obtaining GPS location information, fetching the latest device thumbnail, and listing standard event information for devices.

Where to use

safie-api-mcp-server can be used in various fields such as security surveillance, smart home applications, and any domain that requires real-time access to camera feeds and event data.

Content

Safie API MCP Server

Safie APIを利用してデバイスの情報取得や操作を行うためのMCP (Model Context Protocol) サーバ

[!NOTE]
本実装はプレビュー版であり一部の機能のみを試験的に提供しています。 サポート対象外となりますのでご了承の上、お使いください。

Requirements

  • Python 3.10+, uv or docker

Features

Tools

  • list_devices
    • デバイス一覧を取得します
  • get_device_image
    • 指定されたデバイスから画像を取得します
  • list_device_media
    • 指定されたデバイスで録画されている映像(メディア)の一覧を取得します
  • get_device_location
    • 指定されたデバイスの現在のGPS位置情報を取得します
  • get_device_thumbnail
    • 指定されたデバイスの最新サムネイルを取得します
  • list_device_standard_events
    • 指定されたデバイスの標準イベント情報一覧を取得します

Configuration

以下の環境変数のどちらかが設定されている必要があります

  • ACCESS_TOKEN: Safie Developers OAuth2認証アプリケーションで発行したOAuth2アクセストークン
  • API_KEY: Safie Developers APIキー認証アプリケーションで発行したAPIキー

両方指定した場合、ACCESS_TOKEN が利用されます

Usage

With Claude Desktop

Using python/uv

Python 3.10+, uvが手元にインストールされている場合は以下の設定を追加することで利用できます

{
  "mcpServers": {
    "Safie API": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "git+https://[email protected]/SafiePublic/safie-api-mcp-server.git",
        "safie-api-mcp-server"
      ],
      "env": {
        "ACCESS_TOKEN": "******"
      }
    }
  }
}

Using docker

Dockerを用いて利用する場合は、まず以下のようにイメージをビルドします

$ docker build -t safie-api-mcp-server .

その後、以下の設定を追加することで利用できます

{
  "mcpServers": {
    "Safie API": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "ACCESS_TOKEN",
        "-e",
        "API_KEY",
        "safie-api-mcp-server"
      ],
      "env": {
        "ACCESS_TOKEN": "******"
      }
    }
  }
}

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers