npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ruru-owntracks-mcp

v1.0.0

Published

MCP server for OwnTracks — exposes owner location as tool and resource

Downloads

15

Readme

ruru-owntracks-mcp

OwnTracks Recorder からオーナーの現在地を取得する MCP サーバー。

ツール

| ツール | 説明 | |--------|------| | get_location | オーナーの現在地を取得。device を指定すると特定デバイスに絞り込む |

出力例:

35.6812° N, 139.7671° E — 1丁目, 神南, 渋谷区, 東京都, 150-0041, 日本 (精度: 10m, 3分前)

リソース

| リソース | URI | 説明 | |----------|-----|------| | owner_location | owntracks://owner/location | オーナーの現在地 JSON(EnvironmentObserver の定期取得用) |

レスポンス形式:

{
  "lat": 35.6812,
  "lon": 139.7671,
  "address": "1丁目, 神南, 渋谷区, 東京都, 150-0041, 日本",
  "accuracy_m": 10,
  "timestamp": 1713200000,
  "topic": "owntracks/username/devicename"
}

セットアップ

1. OwnTracks Recorder の起動

# docker-compose 等で起動
docker run -d \
  -p 8083:8083 \
  -v ~/.owntracks:/store \
  owntracks/recorder

2. Cloudflare Tunnel の設定

~/.cloudflared/config.yml に追記:

ingress:
  - hostname: owntracks.example.com
    service: http://localhost:8083
  - service: http_status:404

DNS: owntracks.example.com に Tunnel 向けの CNAME レコードを追加。

3. iPhone アプリの設定

OwnTracks アプリを HTTP モードで設定:

| 項目 | 値 | |------|----| | モード | HTTP | | URL | https://owntracks.example.com/pub | | 認証 | Basic Auth(下記 OWNTRACKS_HTTP_USER / OWNTRACKS_HTTP_PASSWORD と同じ値) |

環境変数

| 変数名 | 必須 | 説明 | |--------|------|------| | OWNTRACKS_RECORDER_URL | 必須 | OwnTracks Recorder の URL(例: http://localhost:8083) | | OWNTRACKS_USERNAME | | OwnTracks アプリの username(絞り込み用。空 = 全ユーザー) | | OWNTRACKS_DEVICE | | デバイス名(絞り込み用。空 = 全デバイス) | | OWNTRACKS_HTTP_USER | | Recorder の Basic Auth ユーザー名 | | OWNTRACKS_HTTP_PASSWORD | | Recorder の Basic Auth パスワード |

使い方

tools:
  mcp_servers:
    - name: owntracks
      transport: stdio
      command: node
      args: ["/path/to/ruru-owntracks-mcp/dist/index.js"]
      env:
        OWNTRACKS_RECORDER_URL: "http://localhost:8083"
        OWNTRACKS_USERNAME: "<username>"
        OWNTRACKS_DEVICE: ""
        OWNTRACKS_HTTP_USER: "<username>"
        OWNTRACKS_HTTP_PASSWORD: "<pass>"

開発

npm install
npm run dev        # 開発サーバー起動
npm run typecheck  # 型チェック
npm run check      # lint
npm run build      # ビルド