note.com MCP Server logo

note.com MCP Server

Community
shimayuz

note.com用MCPサーバー(移行済)

Publishershimayuz
Repositorynote-com-mcp
LanguageTypeScript
Forks
10
Stars
29
Available tools
0
Transport typestdio, streamable-http
Categories
Links
  • Connect tools to AI workflows

    note.com MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    29 stars and 10 forks from the linked repository.

note.com MCP Server

note.comのAPIを利用して、Claude Desktop、Claude Code、Cursor、n8nなどのMCPクライアントから記事の検索・投稿・分析ができるMCPサーバーです。

stdio(ローカル)とHTTP(リモート)の両方のトランスポートに対応しています。


🚀 クイックスタート

1. インストール

bash
git clone https://github.com/shimayuz/note-com-mcp.git
cd note-com-mcp
npm install
npx playwright install chromium  # ブラウザ自動ログイン用
npm run build

2. 認証設定

bash
cp .env.sample .env

.env を編集:

env
NOTE_EMAIL=your-email@example.com
NOTE_PASSWORD=your-password
NOTE_USER_ID=your_note_user_id

起動時にPlaywrightが自動でheadlessログインを行い、セッションCookieを取得・更新します。手動でCookieを設定する必要はありません。

セキュリティ: .envファイルは.gitignoreに含まれているため、リポジトリにコミットされません。

3. 起動

stdioモード(Claude Desktop / Claude Code / Cursor):

bash
npm run start

HTTPモード(n8n / リモート接続):

bash
npm run start:http
# デフォルトポートは3000。変更する場合:
MCP_HTTP_PORT=3001 node build/note-mcp-server.js

🔌 トランスポート

stdioモード(デフォルト)

ローカルのMCPクライアントから直接起動される標準的な接続方式です。

bash
node build/note-mcp-server.js

HTTPモード

リモートクライアントやn8nから接続するためのHTTPベースの接続方式です。MCP_HTTP_PORT環境変数または--httpフラグで有効化されます。

bash
# 環境変数で指定
MCP_HTTP_PORT=3000 node build/note-mcp-server.js

# CLIフラグで指定(ポートはMCP_HTTP_PORTまたはデフォルト3000)
node build/note-mcp-server.js --http
エンドポイントメソッド説明
/mcpPOSTMCP JSON-RPCリクエスト
/mcpGETSSEストリーム
/mcpDELETEセッション終了
/healthGETヘルスチェック

デフォルトのバインドアドレスは127.0.0.1です。MCP_HTTP_HOST環境変数で変更できます。

✨ 主な機能

カテゴリ機能認証
🔍 検索記事検索、ユーザー検索、ハッシュタグ検索不要
📊 分析記事分析、エンゲージメント分析不要
✍️ 投稿下書き作成、画像付き投稿必須
🖼️ 画像画像アップロード、アイキャッチ設定必須
💬 コメントコメント投稿、スキ機能必須
📈 統計PV数、アクセス解析必須

📋 利用可能なツール

検索・分析(認証不要)

  • search-notes - 記事検索(新着/人気/急上昇)
  • search-all - note全体検索
  • analyze-notes - 記事詳細分析
  • get-note - 記事詳細取得
  • search-users - ユーザー検索
  • get-user - ユーザー情報取得
  • get-user-notes - ユーザーの記事一覧
  • search-magazines - マガジン検索
  • get-magazine - マガジン詳細
  • get-category-notes - カテゴリー別記事一覧
  • list-categories - カテゴリー一覧
  • list-hashtags - ハッシュタグ一覧
  • get-hashtag - ハッシュタグ詳細
  • get-comments - コメント一覧
  • get-likes - スキ一覧
  • list-contests - コンテスト一覧

投稿・編集(認証必須)

  • post-draft-note - 下書き作成(Markdown自動変換)
  • get-my-notes - 自分の記事一覧(下書き含む)
  • open-note-editor - 記事の編集ページを開く

インタラクション(認証必須)

  • post-comment - コメント投稿
  • like-note / unlike-note - スキ機能
  • add-magazine-note / remove-magazine-note - マガジン管理
  • get-stats - PV統計情報
  • get-notice-counts - 通知件数
  • get-search-history - 検索履歴

メンバーシップ(認証必須)

  • get-membership-summaries - 加入済みメンバーシップ一覧
  • get-membership-plans - メンバーシッププラン一覧
  • get-membership-notes - メンバーシップの記事一覧
  • get-circle-info - サークル情報

🔧 設定方法

Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json:

json
{
  "mcpServers": {
    "note-api": {
      "command": "node",
      "args": ["/path/to/note-com-mcp/build/note-mcp-server.js"],
      "env": {
        "NOTE_EMAIL": "your_email@example.com",
        "NOTE_PASSWORD": "your_password",
        "NOTE_USER_ID": "your_note_user_id"
      }
    }
  }
}

Claude Code

~/.claude/settings.json の mcpServers に追加:

json
{
  "mcpServers": {
    "note-api": {
      "command": "node",
      "args": ["/path/to/note-com-mcp/build/note-mcp-server.js"],
      "cwd": "/path/to/note-com-mcp",
      "env": {
        "NOTE_EMAIL": "your_email@example.com",
        "NOTE_PASSWORD": "your_password",
        "NOTE_USER_ID": "your_note_user_id"
      }
    }
  }
}

Cursor

~/.cursor/mcp.json:

json
{
  "mcpServers": {
    "note-api": {
      "command": "node",
      "args": ["/path/to/note-com-mcp/build/note-mcp-server.js"],
      "env": {
        "NOTE_EMAIL": "your_email@example.com",
        "NOTE_PASSWORD": "your_password",
        "NOTE_USER_ID": "your_note_user_id"
      }
    }
  }
}

Windsurf

~/.codeium/windsurf/mcp_config.json:

json
{
  "mcpServers": {
    "note-api": {
      "command": "node",
      "args": ["/path/to/note-com-mcp/build/note-mcp-server.js"],
      "env": {
        "NOTE_EMAIL": "your_email@example.com",
        "NOTE_PASSWORD": "your_password",
        "NOTE_USER_ID": "your_note_user_id"
      }
    }
  }
}

/path/to/note-com-mcp は実際のプロジェクトの絶対パスに置き換えてください。

n8n(HTTP経由)

  1. HTTPサーバーを起動:
bash
npm run start:http
  1. n8nで「MCP Client HTTP Streamable」ノードを設定:
HTTP Stream URL: http://127.0.0.1:3000/mcp
HTTP Connection Timeout: 60000

🌐 リモートアクセス(Cloudflare Tunnel)

VPSでn8nを使用する場合、Cloudflare Tunnelで安全に接続できます:

bash
# 1. Cloudflare Tunnelを設定
cloudflared tunnel run note-mcp

# 2. n8nでHTTPS URLを設定
# HTTPS Stream URL: https://your-domain.com/mcp

🔐 認証フロー

起動時に以下の順序で認証情報を取得します:

  1. NOTE_EMAIL / NOTE_PASSWORD が設定されている場合、Playwrightでheadlessログインを実行し、最新のセッションCookieを自動取得
  2. Playwright失敗時は .env の既存Cookie情報にフォールバック
  3. どちらもない場合はPlaywrightがブラウザを開き、手動ログインを求める

セッションCookieは自動で.envに永続化されるため、次回起動時にも利用可能です。

📝 Markdown変換ルール

投稿時のMarkdownは自動的にnote.com用HTMLに変換されます。

Markdownnote.comHTML
# H1 / ## H2大見出し<h2>
### H3小見出し<h3>
#### H4-H6太字<strong>
![[image.png]]画像<figure><img>
- リスト箇条書き<ul><li>

💡 使い方の例

記事検索(認証不要)

noteで「プログラミング」に関する人気記事を検索して

画像付き投稿(認証必須)

タイトル「技術メモ」、本文「## 概要\n\n![[screenshot.png]]」で下書きを作成して

記事分析(認証不要)

ユーザー「username」の記事を分析して、人気の要因を教えて

⚠️ 注意点

  • 投稿機能: 下書き作成のみ対応です。公開はnote.comから直接行ってください
  • 画像: サポート形式はPNG、JPEG、GIFです(最大10MB)
  • 検索結果: 最大20件まで取得できます
  • 認証: セッションCookieは約1~2週間で期限切れになりますが、メール/パスワード設定済みなら自動更新されます

🛠️ 開発

bash
# ビルド
npm run build

# 開発モード(ファイル監視)
npm run dev:watch

# HTTPサーバー開発
npm run dev:http

📄 ライセンス

MIT License

Installation

TypingMind
{
  "mcpServers": {
    "note-com-mcp": {
      "command": "npm",
      "args": [
        "run",
        "start"
      ]
    }
  }
}

Use note.com MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once note.com MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. You can run MCP locally on your device or connect to a remote MCP server URL.

Option 1: Use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add note.com MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the note.com MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "note-com-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "note-mcp-server"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the note.com MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the note.com MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use note.com MCP Server to help me with this task?
note.com MCP Server
Sure. I read it.
Here is what I found using note.com MCP Server.

Option 2: Add an MCP server URL

Use this when note.com MCP Server is already hosted remotely or your team wants one shared connector that multiple users can access.

1

Open MCP connectors

In TypingMind, go to Plugins, open MCP connectors, then choose Add URL.

  1. Open TypingMind in your browser.
  2. Go to Plugins.
  3. Open MCP connectors.
  4. Click Add URL.
TypingMind Add Custom MCP Server URL form
2

Paste the server URL

Enter the MCP server URL from the provider in the Server URL field. Add a connection name, description, icon, custom HTTP headers, or OAuth client settings if the server requires them.

  1. Paste the MCP server URL from the provider into the Server URL field.
  2. Enter a connection name for note.com MCP Server.
  3. Add a description and icon if you want it to be easier to identify.
  4. Add custom HTTP headers or OAuth client details if the server requires authentication.
3

Create the connection

Click Create connection, then return to the Plugins list and confirm the new MCP connection is active.

  1. Click Create connection.
  2. Return to the MCP connectors list.
  3. Confirm the note.com MCP Server connection appears as active.
  4. Refresh the plugin list if the connection does not appear immediately.
4

Switch models without reconnecting

Start a chat with your preferred model, enable the note.com MCP Server tools from Plugins, and switch to another model whenever needed. The MCP connection stays available to the TypingMind workspace.

  1. Start a new chat in TypingMind.
  2. Select the AI model you want to use.
  3. Enable the note.com MCP Server tools from Plugins.
  4. Ask the model to use the tool when needed.
  5. Switch to another AI model and reuse the same MCP connection.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use note.com MCP Server to help me with this task?
note.com MCP Server
Sure. I read it.
Here is what I found using note.com MCP Server.

Frequently asked questions

What is the note.com MCP Server MCP server used for?

note.com MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use note.com MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use note.com MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use note.com MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With note.com MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect note.com MCP Server MCP to TypingMind?

note.com MCP Server can be connected in TypingMind with the local MCP connector or by adding a remote MCP server URL. Use the local connector when the server needs access to files, apps, or private resources on your device, and use a server URL when the MCP server is hosted remotely.

What tools does note.com MCP Server MCP provide in TypingMind?

note.com MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use note.com MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If note.com MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇