
jonathan-politzki/mcp-writer-substack
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
クラウデにSubstack書き込みで橋渡しするモデルコンテキストプロトコル.
概要
オープンソースのモデルコンテキストプロトコル(MCP)の実装で、ClaudeをSubstackとMediumライティングに接続します。 Writer Context Toolは、ClaudeがSubstackやMediumなどのプラットフォームから書き込みにアクセスし、分析することを可能にするMCPサーバーです。 このツールを使用すると、Claudeは、公開されたコンテンツのコンテキストを理解し、よりパーソナライズされたサポートを提供します。 - あなたのブログ投稿をSubstackとMediumから受け取り、永久にキャッシュします - ✓ あなたのクエリに基づいて最も関連性の高いエッセイを見つけるために埋め込みを使用します - Yandexは、Claudeのための別のリソースとして利用可能な個々のエッセイを作る - 🧠は、あなたの文章全体で意味的な検索を実行します - ⚡は、すべてのコンテンツをプリロードし、スタートアップで埋め込みを生成します ツールは、RSSフィードを介してSubstack/Mediumブログに接続し、投稿をフェッチし、ローカルにそれらを永続的にキャッシュします。 また、各投稿の埋め込みを生成し、セマンティック検索を有効にして、クエリに基づいて最も関連性の高いエッセイを見つけます.
概要(AI 翻訳)
オープンソースのモデルコンテキストプロトコル(MCP)の実装で、ClaudeをSubstackとMediumライティングに接続します。
これは何ですか?
Writer Context Toolは、ClaudeがSubstackやMediumなどのプラットフォームから書き込みにアクセスし、分析することを可能にするMCPサーバーです。 このツールを使用すると、Claudeは、公開されたコンテンツのコンテキストを理解し、よりパーソナライズされたサポートを提供します。
##特徴
- 一貫性の取得と永久にSubstackと媒体からブログ投稿をキャッシュ
- 質問に基づいて最も関連性の高いエッセイを見つけるために埋め込みを使用する
- Claudeのための別のリソースとして個々のエッセイを作る
- 🧠 あなたの文章を横断検索を実行します
- ⚡ すべてのコンテンツをプリロードし、スタートアップで埋め込む
使い方
ツールは、RSSフィードを介してSubstack/Mediumブログに接続し、投稿をフェッチし、ローカルにそれらを永続的にキャッシュします。 また、各投稿の埋め込みを生成し、セマンティック検索を有効にして、クエリに基づいて最も関連性の高いエッセイを見つけます。
あなたの文章についてClaudeに尋ねると、これらの個々のエッセイリソースを使用して、既存のコンテンツに基づいて新しいアイデアを開発したりすることができます.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Writer Context Tool for Claude
Open-Sourced Model Context Protocol (MCP) implementation that connects Claude to your Substack and Medium writing.
What is this?
Writer Context Tool is an MCP server that allows Claude to access and analyze your writing from platforms like Substack and Medium. With this tool, Claude can understand the context of your published content, providing more personalized assistance with your writing.
Features
- 🔍 Retrieves and permanently caches your blog posts from Substack and Medium
- 🔎 Uses embeddings to find the most relevant essays based on your queries
- 📚 Makes individual essays available as separate resources for Claude
- 🧠 Performs semantic searches across your writing
- ⚡ Preloads all content and generates embeddings at startup
How It Works
The tool connects to your Substack/Medium blogs via their RSS feeds, fetches your posts, and permanently caches them locally. It also generates embeddings for each post, enabling semantic search to find the most relevant essays based on your queries.
When you ask Claude about your writing, it can use these individual essay resources to provide insights or help you develop new ideas based on your existing content.
Setup Instructions (Step by Step)
Prerequisites
- Python 3.10 or higher
- Claude Desktop (latest version)
- A Substack or Medium account with published content
1. Clone this Repository
git clone https://github.com/yourusername/writer-context-tool.git
cd writer-context-tool
2. Set up Python Environment
Using uv (recommended):
# Install uv if you don't have it
curl -LsSf https://astral.sh/uv/install.sh | sh
# Create virtual environment and install dependencies
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install -r requirements.txt
Or using standard pip:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -r requirements.txt
3. Configure Your Blogs
-
Copy the example configuration file:
cp config.example.json config.json -
Edit
config.jsonwith your Substack/Medium URLs:{ "platforms": [ { "type": "substack", "url": "https://yourusername.substack.com", "name": "My Substack Blog" }, { "type": "medium", "url": "https://medium.com/@yourusername", "name": "My Medium Blog" } ], "max_posts": 100, "cache_duration_minutes": 10080, "similar_posts_count": 10 }max_posts: Maximum number of posts to fetch from each platform (default: 100)cache_duration_minutes: How long to cache content before refreshing (default: 1 week or 10080 minutes)similar_posts_count: Number of most relevant posts to return when searching (default: 10)
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
# Get the absolute path to your uv command
UV_PATH=$(which uv)
# Create the configuration
cat > ~/Library/Application\ Support/Claude/claude_desktop_config.json << EOF
{
"mcpServers": {
"writer-tool": {
"command": "${UV_PATH}",
"args": [
"--directory",
"$(pwd)",
"run",
"writer_tool.py"
]
}
}
}
EOF