Substack Reader

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Fetches and processes articles from Trade Companion by Adam Mancini on Substack, extracting article content in plain text format while preserving formatting elements like headings, paragraphs, and list items.

Substack 阅读器

一种用于获取和阅读 Adam Mancini 在 Substack 上撰写的 Trade Companion 文章的工具。

设置

先决条件

  1. Python 3.8+
  2. Python 的 uv 包管理器
  3. 克劳德人工智能助手

安装

  1. 如果您还没有安装 uv 包管理器,请安装它:
    curl -sSf https://install.ultraviolet.dev | sh
  2. 创建并激活虚拟环境:
    uv venv source .venv/bin/activate # On Windows: .venv\Scripts\activate
  3. 使用 pyproject.toml 文件安装依赖项:
    uv pip install -e .

设置 Substack 身份验证

要访问仅限订阅者的内容,您需要提供 Substack cookies:

  1. 为您的浏览器安装 Cookie-Editor 扩展:
  2. 登录您的 Substack 帐户,网址为tradecompanion.substack.com
  3. 点击 Cookie 编辑器扩展图标
  4. 单击“导出”并选择“导出为 JSON”(这会将 cookie 复制到剪贴板)
  5. 在该项目的根目录中创建一个名为substack_cookies.json的文件
  6. 将复制的 cookies 粘贴到此文件中并保存

与 Claude 一起使用

此工具旨在与 Claude AI 助手配合使用。设置方法:

  1. 通过将以下内容添加到您的 Claude 配置文件中,配置 Claude 以使用此 MCP 服务器:
{ "mcpServers": { "substack_reader": { "command": "uv", "args": [ "--directory", "/path/to/substack_reader", "run", "substack_reader.py" ] } }, "globalShortcut": "Ctrl+Space" }

/path/to/substack_reader替换为 substack_reader 目录的实际路径。

  1. 正确配置后,Claude 启动时将自动连接到此 MCP 服务器。
  2. 然后您可以要求 Claude 获取最新的 Trade Companion 文章。

特征

  • 获取 Adam Mancini 撰写的最新 Trade Companion 文章
  • 以纯文本格式提取文章内容
  • 保留标题、段落和列表项
  • 不包括“我的交易方法基础”文章

隐私声明

您的 Substack Cookie 本地存储在substack_cookies.json文件中,仅用于验证对 Substack 的请求。它们不会被发送到其他地方,也不会以任何方式暴露。

-
security - not tested
F
license - not found
-
quality - not tested

能够从 Substack 上的 Adam Mancini 撰写的 Trade Companion 中获取和阅读仅限订阅者的内容,从而允许 Claude 访问和讨论最新的金融交易文章。

  1. Setup
    1. Prerequisites
    2. Installation
    3. Setting up Substack Authentication
  2. Usage with Claude
    1. Features
      1. Privacy Note
        ID: 1jzplz4c70