Integrations
Enables retrieval and search of newsletter posts, podcasts, and recommendations, as well as accessing post content, metadata, user profiles, and subscription information from Substack publications.
サブスタックMCP
Claude やその他の AI アシスタントとの Substack API 統合用の MCP (モデル コンテキスト プロトコル) サーバー。
概要
このプロジェクトは、ClaudeのようなAIアシスタントが標準化されたインターフェースを介してSubstackのニュースレター、投稿、そして著者とやり取りできるようにするModel Context Protocol(MCP)サーバーを実装します。Substack APIライブラリを活用し、その機能をMCPを通じて提供します。
この MCP サーバーを使用すると、Claude は次のことが可能になります。
- ニュースレターの投稿、ポッドキャスト、おすすめ情報を取得する
- 投稿コンテンツとメタデータを取得する
- ニュースレター内の投稿を検索する
- ユーザープロフィール情報とサブスクリプションを取得する
インストール
前提条件
- Python 3.10以上
- Claude for Desktop (テスト用)
設定
- このリポジトリをクローンします:Copy
uv
を使用して仮想環境を設定します。Copy- 依存関係をインストールします:Copy
使用法
サーバーの実行
MCP サーバーを実行します。
デスクトップ版Claudeの設定
- Claude for Desktop の設定ファイルを開きます。
- macOS/Linux :
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows :
%APPDATA%\Claude\claude_desktop_config.json
- macOS/Linux :
- サーバー構成を追加します:Copy
- Claude for Desktop を再起動します。
クエリの例
設定が完了すると、Claude に次のような質問をすることができます。
- 「 https://stratechery.com/からの最近の投稿を表示」
- 「この投稿の内容は何ですか: https://stratechery.com/2023/the-ai-unbundling/ 」
- 「 https://stratechery.com/で「AI」を検索してください」
- 「 https://stratechery.com/の著者は誰ですか?」
利用可能なツール
サーバーは次の MCP ツールを提供します。
道具 | 説明 |
---|---|
get_newsletter_posts | Substackニュースレターから最近の投稿を取得します |
get_post_content | 特定のSubstack投稿の完全なコンテンツを取得します |
search_newsletter | ニュースレター内の投稿を検索します |
get_author_info | Substackの著者に関する情報を取得します |
get_newsletter_recommendations | Substack の出版物に推奨されるニュースレターを取得します |
get_newsletter_authors | Substackニュースレターの著者を獲得する |
プロジェクト構造
substack_mcp.py
- メインMCPサーバーの実装examples/
- クエリと応答の例docker/
- コンテナ化されたデプロイメント用の Docker 構成
発達
このプロジェクトに貢献するには:
- リポジトリをフォークする
- 機能ブランチを作成する (
git checkout -b feature/amazing-feature
) - 変更をコミットします (
git commit -m 'Add some amazing feature'
) - ブランチにプッシュする (
git push origin feature/amazing-feature
) - プルリクエストを開く
トラブルシューティング
問題が発生した場合:
- Claude のログでエラーを確認します。Copy
- サーバーがビルドされ、エラーなしで実行されることを確認します。Copy
claude_desktop_config.json
ファイルに正しいパスと構文が含まれていることを確認してください。- Claude for Desktop を完全に再起動してみてください。
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。
謝辞
- Substack API - Substackインタラクションの基礎となるライブラリ
- モデルコンテキストプロトコル- 標準化された LLM 統合のための Anthropic のプロトコル
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Claude のような AI アシスタントが Substack ニュースレターと対話できるようにし、標準化されたインターフェースを介して投稿の取得、コンテンツの検索、著者情報へのアクセスを可能にする MCP サーバー。
Related Resources
Related MCP Servers
- -securityAlicense-qualityAn MCP server that helps AI assistants access text content from websites that implement bot detection, bridging the gap between what you can see in your browser and what the AI can access.Last updated -1PythonApache 2.0
- -security-license-qualityA specialized MCP server that enables AI agents to interact with Reddit, including reading posts, creating content, and managing subreddit configurations.Last updated -311TypeScript
- -securityFlicense-qualityAn MCP server that connects AI assistants to SearchAgora, enabling users to search for, discover, and purchase products across the web through natural language conversations.Last updated -Python
- -securityFlicense-qualityA MCP server that allows AI assistants to interact with the browser, including getting page content as markdown, modifying page styles, and searching browser history.Last updated -5TypeScript