PT

pepuscz/typefully-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

6 stars 3 forks 质量 64 趋势 14MIT

MCP server for Typefully service

概览

A Model Context Protocol (MCP) server that provides integration with the Typefully API, allowing AI assistants to create and manage drafts on Typefully. - with full support for: - Multi-tweet threads (using 4 newlines as separator) - Automatic threadification - Scheduling (specific date/time or next free slot) - AutoRT and AutoPlug features - Share URLs - with optional filtering - with optional filtering - Python 3.10 or higher - A Typefully account with API access - Your Typefully API key (get it from Settings > Integrations in Typefully) 2. Create and activate a virtual environment: This server supports secure API key storage using macOS Keychain. You have two options: Store your API key securely in the macOS System keychain: - : typefully-mcp-server - : api_key - : Your Typefully API key For detailed keychain setup instructions, see CURSOR_SETUP.md. You can set the API key as an environment variable or include it directly in your MCP configuration.

README

以下为原文 README 节选,完整内容请查看原文。

Typefully MCP Server

A Model Context Protocol (MCP) server that provides integration with the Typefully API, allowing AI assistants to create and manage drafts on Typefully.

Features

  • Create drafts with full support for:
    • Multi-tweet threads (using 4 newlines as separator)
    • Automatic threadification
    • Scheduling (specific date/time or next free slot)
    • AutoRT and AutoPlug features
    • Share URLs
  • Get scheduled drafts with optional filtering
  • Get published drafts with optional filtering

Installation

Prerequisites

  • Python 3.10 or higher
  • A Typefully account with API access
  • Your Typefully API key (get it from Settings > Integrations in Typefully)

Install from source

  1. Clone this repository:
git clone 
cd typefully-mcp-server
  1. Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install the package:
pip install -e .

Configuration

API Key Management

This server supports secure API key storage using macOS Keychain. You have two options:

Store your API key securely in the macOS System keychain:

  • Service: typefully-mcp-server
  • Account: api_key
  • Password: Your Typefully API key

For detailed keychain setup instructions, see CURSOR_SETUP.md.

Option 2: Environment Variables

You can set the API key as an environment variable or include it directly in your MCP configuration.

Note: Environment variables take priority over keychain storage for compatibility.

MCP Configuration

For detailed MCP client setup instructions (Cursor, Claude Desktop, etc.), see CURSOR_SETUP.md.

Basic MCP configuration example:

{
  "mcpServers": {
    "typefully": {
      "command": "/path/to/your/typefully-mcp-server/venv/bin/python",
      "args": ["-m", "typefully_mcp_server.server"],
      "cwd": "/path/to/your/typefully-mcp-server"
    }
  }
}

Usage

Once configured, the MCP server provides the following tools:

create_draft

Create a new draft in Typefully.

Parameters:

  • content (required): The content of the draft. Use 4 consecutive newlines to split into multiple tweets.
  • threadify (optional): Automatically split content into multiple tweets
  • share (optional): If true, returned payload will include a share_url
  • schedule_date (optional): ISO formatted date (e.g., “2024-01-15T10:30:00Z”) or “next-free-slot”
  • auto_retweet_enabled (optional): Enable AutoRT for this post
  • auto_plug_enabled (optional): Enable AutoPlug for this post

Example:

Create a draft with content "Hello from MCP! This is my first automated tweet." and schedule it for next free slot
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "typefully": { "command": "/path/to/your/typefully-mcp-server/venv/bin/python", "args": ["-m", "typefully_mcp_server.server"], "cwd": "/path/to/your/typefully-mcp-server" } } }