- Explore MCP Servers
- mcp-esa-server-python
Mcp Esa Server Python
What is Mcp Esa Server Python
mcp-esa-server-python is a Model Context Protocol Server (MCP server) implemented in Python that integrates with the esa.io API, allowing users to manage and interact with their esa.io content.
Use cases
Use cases for mcp-esa-server-python include automating content updates in esa.io, integrating esa.io with other applications, and providing a streamlined interface for managing articles and user information.
How to use
To use mcp-esa-server-python, first set up your environment by creating a .env
file with your esa.io team name and API token. Then, run the server using the command uv run mcp run main.py
and access the MCP Inspector via the provided URL to execute commands like creating or updating posts.
Key features
Key features of mcp-esa-server-python include user information retrieval, fetching article lists, obtaining article details, creating articles, updating articles, and deleting articles.
Where to use
mcp-esa-server-python can be used in various fields where content management is required, particularly in teams and organizations that utilize esa.io for documentation and collaborative writing.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Mcp Esa Server Python
mcp-esa-server-python is a Model Context Protocol Server (MCP server) implemented in Python that integrates with the esa.io API, allowing users to manage and interact with their esa.io content.
Use cases
Use cases for mcp-esa-server-python include automating content updates in esa.io, integrating esa.io with other applications, and providing a streamlined interface for managing articles and user information.
How to use
To use mcp-esa-server-python, first set up your environment by creating a .env
file with your esa.io team name and API token. Then, run the server using the command uv run mcp run main.py
and access the MCP Inspector via the provided URL to execute commands like creating or updating posts.
Key features
Key features of mcp-esa-server-python include user information retrieval, fetching article lists, obtaining article details, creating articles, updating articles, and deleting articles.
Where to use
mcp-esa-server-python can be used in various fields where content management is required, particularly in teams and organizations that utilize esa.io for documentation and collaborative writing.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
mcp-esa-server-python
esa.io API と連携するための Model Context Protocol Server (mcp server)です。Pythonで実装しています。
できること
現在は以下の機能を提供しています。
- ユーザー情報取得(user_get_info)
- 記事一覧取得(posts_get_list)
- 記事詳細取得(posts_get_detail)
- 記事作成 (posts_create)
- 記事更新 (posts_update)
- 記事削除 (posts_delete)
セットアップ手順
前提条件
-
esa.ioのAPIトークンを発行済であること
-
uv が使えること
-
インターネット接続
-
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
(ユーザー情報の取得) (この項目は自動的に有効になるため、表示されない可能性があります)
- 「Save」をクリックします。
- 表示されたトークンを必ずコピーして安全な場所に保管してください。このトークンは一度しか表示されません。
- コピーしたトークンは、後述の
.env
ファイルのESA_TOKEN
の値として貼り付けます。
- あなたの esa.io チームのページにアクセスします (例:
-
esa.io では、サインアップから2ヶ月間の無料トライアル期間が提供されています。この期間を利用して、テスト用のチーム名とAPIトークンを取得することができます。
-
セキュリティのため、トークンは直接公開しないようご注意ください。
プロジェクトの初期化
uv sync
開発(ローカルでの使い方)
開発に参加する場合や、MCPInspectorを利用する場合は、以下の手順で環境を構築します。
-
環境変数の設定
.env.example
を参考にして、.env
をサーバーを実行したいディレクトリ(.env.example
と同じ場所)を作成します。ESA_TEAM_NAME="YOUR_ESA_TEAM_NAME" # Replace with your esa.io team name (e.g., "myteam") ESA_TOKEN="YOUR_ESA_API_TOKEN" # Replace with your esa.io API access token
-
実行方法
下記コマンドを実行後に、指示のあるURLからブラウザを開くことで、MCP Inspectorを使って、各コマンド(記事作成など)を実行することができます。uv run mcp run main.py
MCPServerとしてCursorエディタで使う方法
- mcp.jsonの作成例
プロジェクトルートまたは ~/.cursor/mcp.json
に以下のような設定ファイルを用意します。
{
"mcpServers": {
"mcp-esa-server": {
"command": "uv",
"args": [
"--directory",
"<プロジェクトの絶対パス>",
"run",
"main.py"
],
"env": {
"ESA_TEAM_NAME": "<your-team-name>",
"ESA_TOKEN": "<your-esa-token>"
}
}
}
}
<your-team-name>
と<your-esa-token>
は各自のesa.ioチーム名・APIトークンに置き換えてください。env
: 環境変数を 直接 設定します。この方法を使用する場合、.cursor/mcp.json
のコミットは絶対に避けてください。
- CursorエディタでMCPサーバーを起動
- CursorエディタのコマンドパレットやUIから「MCPサーバーを起動」または「AIツールを有効化」します。
- mcp.jsonの設定に従い、
uv run main.py
でサーバーが起動します。 .env
ファイルや環境変数も自動的に読み込まれます。
- AIチャットやツールパネルからAPIを呼び出し
- AIチャット上で
user_get_info
やposts_get_list
などのMCPツールを呼び出すことで、esa.io APIと連携した操作が可能です。 mcp-esa-serverを使って記事の作成をお願いします
などとチャット上で書き込むことで利用できます。
ライセンス (License)
このプロジェクトは MIT License の下で公開されています。
使用している外部コード / Dependencies
このプロジェクトの一部では、以下のMIT Licenseで公開されているコードを参照しています。
- esa-mcp-server
- GitHubリポジトリ: [https://github.com/masseater/esa-mcp-server]
- ライセンス: MIT License
その他 (Misc)
生成元 (Generated by)
generated by Cursor (gemini-2.5-pro-exp-03-25)
DevTools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.