ESA MCP Server

by masseater

284 downloads Not rated yet MIT license
GitHub

About

ESA MCP Server is a Model Context Protocol (MCP) server that integrates with the esa.io API, built using Deno and published on JSR. It allows AI assistants to perform basic esa.io operations as MCP tools.

Details

License
MIT license

Explore

- Fetch user information from esa.io
- List, get, create, update, and delete articles
- Runs directly from JSR without cloning the repository
- Uses Deno runtime with explicit network permissions

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name ESA MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Deno v2.0 以降がインストールされていること。(Deno v2.0 or later installed.)
インターネット接続。(Internet connection.)

1. 環境変数の設定 (Set up environment variables):
サーバーを実行したいディレクトリ(通常はプロジェクトのワークスペースルート)に .env ファイルを作成し、以下の内容を記述します。(Create a .env file in the directory where you want to run the server (usually the project workspace root) and add the following content:)


以下のコマンドを実行します。(Run the following command:)

bash

Cursor で MCP サーバーとして利用する場合、.cursor/mcp.json に以下のように設定します。

🚨 警告: 以下の設定例のように API トークン等を直接書き込む方法は、セキュリティリスクを伴います。.cursor ディレクトリが .gitignore で無視されていない場合、このファイルをコミットすると機密情報が漏洩します。可能な限り .env ファイルを使用し、${env:VAR_NAME} 形式で読み込むことを強く推奨します。もし直接書き込む場合は、.cursor/mcp.json ファイルを絶対にコミットしないでください! 🚨

{
  "mcpServers": {
    "esa-mcp-server-jsr": {
      "command": "deno",
      "args": [
        "run",
        "--allow-env",
        "--allow-net=api.esa.io",
        "--allow-read",
        "jsr:@masseater/esa-mcp-server"
      ],
      "env": {
        "ESA_TOKEN": "YOUR_ACTUAL_ESA_API_TOKEN",
        "ESA_TEAM_NAME": "YOUR_ACTUAL_ESA_TEAM_NAME"
      }
    }
  }
}
ポイント: command: deno を指定します。 args: run と必要なパーミッション (--allow-env, --allow-net=api.esa.io, --allow-read)、そして JSR パッケージの specifier を指定します。(依存ライブラリの都合上、--allow-env が必要です。) env: 環境変数を 直接 設定します。この方法を使用する場合、.cursor/mcp.json のコミットは絶対に避けてください。

---

deno run --allow-env --allow-net --allow-read main.ts
または、ホットリロードを有効にして実行する場合:
deno task dev

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "esa mcp server": {
            "esa-mcp-server-masseater": {
                "command": "deno",
                "args": [
                    "run",
                    "--allow-env",
                    "--allow-net=api.esa.io",
                    "--allow-read",
                    "jsr:@masseater/esa-mcp-server"
                ]
            }
        }
    }
}

McpServers

{
    "esa-mcp-server-masseater": {
        "command": "deno",
        "args": [
            "run",
            "--allow-env",
            "--allow-net=api.esa.io",
            "--allow-read",
            "jsr:@masseater/esa-mcp-server"
        ]
    }
}

JSR
jsr:@masseater/esa-mcp-server

esa.io API と連携するための Model Context Protocol (MCP) サーバーです。
Deno と JSR を使用して公開されています。

機能

現在、以下の基本的な esa.io API 操作を MCP ツールとして提供しています:

ユーザー情報の取得
記事一覧の取得
記事詳細の取得
記事の作成
記事の更新
記事の削除

使い方 (JSR からの実行)

JSR (JavaScript Registry) に公開されているため、ローカルにリポジトリをクローンすることなく、直接 MCP サーバーを実行できます。

前提条件 (Prerequisites)

Deno v2.0 以降がインストールされていること。(Deno v2.0 or later installed.)
インターネット接続。(Internet connection.)

セットアップ (Setup)

1. 環境変数の設定 (Set up environment variables):
サーバーを実行したいディレクトリ(通常はプロジェクトのワークスペースルート)に .env ファイルを作成し、以下の内容を記述します。(Create a .env file in the directory where you want to run the server (usually the project workspace root) and add the following content:)

    # .env
    ESA_TEAM_NAME="YOUR_ESA_TEAM_NAME" # Replace with your esa.io team name
    ESA_TOKEN="YOUR_ESA_API_TOKEN"     # Replace with your esa.io API access token
    
YOUR_ESA_TEAM_NAME と YOUR_ESA_API_TOKEN を実際の値に置き換えてください。(Replace YOUR_ESA_TEAM_NAME and YOUR_ESA_API_TOKEN with your actual values.)

esa.io API トークンの発行方法:
あなたの esa.io チームのページにアクセスします (例: https://<your-team-name>.esa.io/)。
右上の自分のアイコンをクリックし、「設定 (Settings)」>「アプリケーション」を選択します。
「個人用アクセストークン (Personal access tokens)」セクションで、「新しいトークンを発行する (Generate new token)」をクリックします。
トークン名 (例: mcp-server) を入力し、必要な権限スコープを選択します。この MCP サーバーには少なくとも以下の権限が必要です:
read (記事の読み取り)
write (記事の作成・更新・削除)
read_user (ユーザー情報の取得)
「発行する (Generate token)」をクリックします。
表示されたトークンを必ずコピーして安全な場所に保管してください。このトークンは一度しか表示されません。
コピーしたトークンを、上記 .env ファイルの ESA_TOKEN の値として貼り付けます。

実行 (Running)

以下のコマンドを実行します。(Run the following command:)

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.