I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

servidor sustituto de mCP
Servidor MCP para la integración de API de sustancia con Claude
3 years
Works with Finder
1
Github Watches
1
Github Forks
0
Github Stars
Substack MCP Server
A Model Context Protocol (MCP) server that enables Claude and other AI assistants to interact with Substack newsletters, posts, and user profiles.
Overview
This project converts the Substack API library into an Anthropic MCP server, allowing Claude to:
- Retrieve newsletter posts, podcasts, and recommendations
- Get user profile information and subscriptions
- Fetch post content and metadata
- Search for posts within newsletters
- Search across multiple Substack newsletters simultaneously
- Discover popular Substack newsletters by category
Installation
Prerequisites
- Python 3.10 or higher
- Claude for Desktop (for testing with Claude)
Installation Steps
# Clone the repository
git clone https://github.com/Greg-Swiftomatic/substack-mcp-server.git
cd substack-mcp-server
# Set up virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
Alternatively, you can use uv
:
# Using uv for faster installation
curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv
source .venv/bin/activate
uv pip install -r requirements.txt
Usage
Running the Server
python substack_mcp.py
Connecting to Claude for Desktop
-
Open your Claude for Desktop configuration file:
- MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- MacOS:
-
Add the server configuration:
{
"mcpServers": {
"substack": {
"command": "python",
"args": [
"/ABSOLUTE/PATH/TO/substack-mcp-server/substack_mcp.py"
]
}
}
}
- Restart Claude for Desktop
Using with Claude
Once configured, you can ask Claude questions like:
- "Show me recent posts from https://stratechery.com/"
- "What's the content of this post: https://stratechery.com/2023/the-ai-unbundling/"
- "Search for 'AI' on https://stratechery.com/"
- "Search for 'AI ethics' across multiple Substack newsletters"
- "What are popular technology newsletters on Substack?"
- "Who are the authors of https://stratechery.com/?"
See example queries for more examples.
Available Tools
This MCP server provides the following tools:
Tool | Description |
---|---|
get_newsletter_posts |
Retrieves recent posts from a Substack newsletter |
get_post_content |
Gets the full content of a specific Substack post |
search_newsletter |
Searches for posts within a newsletter |
search_across_substacks |
Searches for content across multiple Substack newsletters |
discover_popular_substacks |
Discovers popular Substack newsletters by category |
get_author_info |
Retrieves information about a Substack author |
get_newsletter_recommendations |
Gets recommended newsletters for a publication |
get_newsletter_authors |
Lists authors of a Substack newsletter |
Development
Project Structure
substack-mcp-server/
├── README.md
├── LICENSE
├── requirements.txt
├── Dockerfile
├── substack_mcp.py
└── examples/
└── example_queries.md
Adding New Tools
To add new tools to the MCP server, add a new function to substack_mcp.py
with the @mcp.tool()
decorator:
@mcp.tool()
async def my_new_tool(param1: str, param2: int = 5) -> str:
"""
Description of what the tool does.
Args:
param1: Description of param1
param2: Description of param2 (default: 5)
"""
# Tool implementation
return "Result"
Cross-Substack Search
The search_across_substacks
tool enables powerful research capabilities by searching multiple Substack newsletters simultaneously for specific topics. This allows for:
- Discovering diverse perspectives on a topic across different authors
- Comparing coverage of current events across publications
- Finding the most comprehensive content on niche topics
You can specify which newsletters to search or let the system use a curated list of popular newsletters. Results are organized by newsletter for easy comparison.
Substack Discovery
The discover_popular_substacks
tool helps users find new newsletters based on categories of interest. Currently supported categories include:
- technology
- politics
- science
- culture
- economics
This feature makes it easier to discover high-quality content creators in specific domains.
Troubleshooting
If you encounter issues:
-
Check Claude's logs:
# MacOS tail -n 20 -f ~/Library/Logs/Claude/mcp*.log # Windows type %APPDATA%\Claude\Logs\mcp*.log
-
Ensure your server runs without errors:
python substack_mcp.py
-
Verify the configuration file paths in Claude for Desktop.
Contributing
Contributions are welcome! Please feel free to submit a pull request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- NHagar/substack_api - The original Substack API library
- Model Context Protocol - Anthropic's MCP specification
相关推荐
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
Confidential guide on numerology and astrology, based of GG33 Public information
A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.
Converts Figma frames into front-end code for various mobile frameworks.
Advanced software engineer GPT that excels through nailing the basics.
Therapist adept at identifying core issues and offering practical advice with images.
Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.
Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx
Una puerta de enlace de API unificada para integrar múltiples API de explorador de blockchain similar a Esterscan con soporte de protocolo de contexto modelo (MCP) para asistentes de IA.
Espejo dehttps: //github.com/agentience/practices_mcp_server
Espejo de https: //github.com/bitrefill/bitrefill-mcp-server
Servidor MCP para obtener contenido de la página web con el navegador sin cabeza de dramaturgo.
Reviews

user_IlAxdmUT
The "Welcome to the Minesweeper MCP Server" by CODGODMW is a phenomenal addition to any Minesweeper enthusiast's toolkit. The server provides a seamless and enjoyable experience, making gameplay more engaging. I've had countless hours of fun and highly recommend it to both new and veteran players. Check it out at https://mcp.so/server/minesweeper-mcp-server/CODGODMW!