by jean-technologies
An open-sourced Model Context Protocol (MCP) implementation that connects Claude to your Substack and Medium writing, enabling semantic search and analysis of your published content.
mcp-writer-substack is a Writer Context Tool for Claude, implemented as an open-sourced Model Context Protocol (MCP) server. It allows Claude to access and analyze your writing from platforms like Substack and Medium, providing more personalized assistance with your writing by understanding the context of your published content.
To use mcp-writer-substack, you need Python 3.10 or higher, Claude Desktop (latest version), and a Substack or Medium account with published content. The setup involves cloning the repository, setting up a Python environment (using uv
or pip
), configuring your blogs by editing config.json
with your Substack/Medium RSS feed URLs, and finally connecting with Claude Desktop by creating a configuration file (claude_desktop_config.json
) that points to the mcp-writer-substack
script. After setup, restart Claude Desktop to see your essays as resources.
config.json
, try "refresh_content" tool, and ensure blogs are public with published posts.uv
command? Try using the shell script approach or verify uv
installation and PATH.Open-Sourced Model Context Protocol (MCP) implementation that connects Claude to your Substack and Medium writing.
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.
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.
git clone https://github.com/yourusername/writer-context-tool.git
cd writer-context-tool
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
Copy the example configuration file:
cp config.example.json config.json
Edit config.json
with 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)Create the Claude Desktop configuration directory:
# On macOS
mkdir -p ~/Library/Application\ Support/Claude/
Create the configuration file:
# 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
Note: If you experience issues with the
uv
command, you can use the included shell script alternative:
- Make the script executable:
chmod +x run_writer_tool.sh
- Update your Claude Desktop config to use the script:
{ "mcpServers": { "writer-tool": { "command": "/absolute/path/to/run_writer_tool.sh", "args": [] } } }
Restart Claude Desktop
Once set up, you'll see individual essays available as resources in Claude Desktop. You can:
Search across your writing: Ask Claude to find relevant content
Reference specific essays: Access individual essays by clicking on them when listed in search results
Refresh content: Force a refresh of your content
The Writer Context Tool provides:
The tool implements permanent caching with these features:
If you encounter issues:
Tool doesn't appear in Claude Desktop:
No content appears:
Error with uv command:
Embedding issues:
This project is available under the MIT License.
Please log in to share your review and rating for this MCP.
Discover more MCP servers with similar functionality and use cases
by danny-avila
Provides a customizable ChatGPT‑like web UI that integrates dozens of AI models, agents, code execution, image generation, web search, speech capabilities, and secure multi‑user authentication, all open‑source and ready for self‑hosting.
by ahujasid
BlenderMCP integrates Blender with Claude AI via the Model Context Protocol (MCP), enabling AI-driven 3D scene creation, modeling, and manipulation. This project allows users to control Blender directly through natural language prompts, streamlining the 3D design workflow.
by pydantic
Enables building production‑grade generative AI applications using Pydantic validation, offering a FastAPI‑like developer experience.
by GLips
Figma-Context-MCP is a Model Context Protocol (MCP) server that provides Figma layout information to AI coding agents. It bridges design and development by enabling AI tools to directly access and interpret Figma design data for more accurate and efficient code generation.
by mcp-use
Easily create and interact with MCP servers using custom agents, supporting any LLM with tool calling and offering multi‑server, sandboxed, and streaming capabilities.
by sonnylazuardi
This project implements a Model Context Protocol (MCP) integration between Cursor AI and Figma, allowing Cursor to communicate with Figma for reading designs and modifying them programmatically.
by lharries
WhatsApp MCP Server is a Model Context Protocol (MCP) server for WhatsApp that allows users to search, read, and send WhatsApp messages (including media) through AI models like Claude. It connects directly to your personal WhatsApp account via the WhatsApp web multi-device API and stores messages locally in a SQLite database.
by idosal
GitMCP is a free, open-source remote Model Context Protocol (MCP) server that transforms any GitHub project into a documentation hub, enabling AI tools to access up-to-date documentation and code directly from the source to eliminate "code hallucinations."
by Klavis-AI
Klavis AI provides open-source Multi-platform Control Protocol (MCP) integrations and a hosted API for AI applications. It simplifies connecting AI to various third-party services by managing secure MCP servers and authentication.