Skip to main content
Glama
mcp-plus-tard

mcp-plus-tard

by boreales

Plus Tard MCP

Python FastAPI MCP License

Verbinden Sie Ihren KI-Assistenten (Claude, Cursor, n8n…) mit Plus Tard, um Ihre Beiträge für Facebook, Instagram, LinkedIn, X/Twitter, TikTok, Threads, Bluesky und Google My Business einfach per Konversation zu planen.

Produktions-Endpoint : https://mcp.plus-tard.com/mcp/ Benutzerdokumentation : https://plus-tard.com/api-mcp


Demo in 30 Sekunden

Sie : „Plane einen Facebook-Beitrag auf meiner Seite Boréales für morgen um 10 Uhr: 'Hallo Welt!'“

Claude ruft automatisch auf:

  1. list_accounts → findet die Facebook-ID von „Boréales“

  2. schedule_post(provider="facebook", page_id="…", planned_at="2026-05-05T10:00:00Z", text="Hallo Welt!")

Plus Tard : ✅ Beitrag #1432 geplant für den 05.05.2026 um 10:00 Uhr.


Related MCP server: posthive

Tools (5)

Tool

Beschreibung

validate_api_key

Überprüft, ob ein API-Schlüssel aktiv ist, und gibt dessen Metadaten zurück.

list_accounts

Listet alle mit Plus Tard verbundenen Social-Media-Konten auf.

schedule_post

Plant einen Beitrag auf einem einzelnen Netzwerk (1 Aufruf = 1 Netzwerk).

register_user

Erstellt einen neuen Benutzer und gibt eine OAuth-URL zurück.

get_user

Benutzerdetails: verbundene Anbieter und Unterkonten.

Ressourcen (2)

URI

Inhalt

plus-tard://accounts

JSON-Liste der verbundenen Konten.

plus-tard://users/{id}

JSON-Details eines Benutzers.


Clientseitige Installation

Claude Desktop

Fügen Sie dies zu ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) hinzu:

{
  "mcpServers": {
    "plus-tard": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.plus-tard.com/mcp/",
        "--header",
        "X-Api-Key:${PLUS_TARD_TOKEN}"
      ],
      "env": {
        "PLUS_TARD_TOKEN": "your_plus_tard_api_key"
      }
    }
  }
}

Claude Code (CLI)

claude mcp add plus-tard \
  --transport http https://mcp.plus-tard.com/mcp/ \
  --header "X-Api-Key: your_plus_tard_api_key"

Claude.ai (Web)

Settings → Connectors → Add custom connector — URL https://mcp.plus-tard.com/mcp/, Header X-Api-Key: your_key.

Cursor / n8n

Gleiche URL und Header. Siehe die vollständige Dokumentation.


Self-Host (für Entwickler)

Stack

  • Python 3.12 · FastAPI · mcp[fastapi] (Streamable HTTP transport)

  • httpx · pydantic v2 · pydantic-settings

  • pytest · pytest-asyncio · respx

Architektur

Client (Claude/Cursor/n8n)
   │  Streamable HTTP + X-Api-Key header
   ▼
MCP server (this repo)
   │  X-Api-Key forwarded as-is
   ▼
Plus Tard Symfony API

Jede MCP-Anfrage kommt mit einem X-Api-Key, der unverändert an die Plus Tard API weitergeleitet wird. Keine Sitzungen, keine serverseitige Speicherung — jeder Client verwendet seinen eigenen Schlüssel.

Lokale Entwicklung

git clone https://github.com/<votre-org>/plus-tard-mcp.git
cd plus-tard-mcp

python3.12 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"

cp .env.example .env
# Édite .env : PLUS_TARD_BASE_URL=https://plus-tard.com

uvicorn main:app --reload --port 8001

Der Server lauscht auf http://127.0.0.1:8001/mcp/. Schneller Test mit dem MCP Inspector :

npx @modelcontextprotocol/inspector
# Transport: Streamable HTTP
# URL: http://127.0.0.1:8001/mcp/
# Header: X-Api-Key = ta_clef_plus_tard

Tests

pytest
# 24 passed

Docker-Bereitstellung (Produktion)

Das Repository stellt Dockerfile + docker-compose.yml bereit, fertig für einen VPS mit nginx-proxy + acme-companion :

sudo docker compose up -d --build

Siehe deploy/README.md für Details (SSE-freundlicher nginx-proxy-Schnipsel, Let's Encrypt TLS-Verwaltung, Updates).


Konfiguration

Variable

Beschreibung

Standard

PLUS_TARD_BASE_URL

Basis-URL der Plus Tard API

(erforderlich)

MCP_HOST

Bind-Host für uvicorn

0.0.0.0

MCP_PORT

Bind-Port für uvicorn

8001

Die Authentifizierung erfolgt pro Anfrage über den Header X-Api-Key — keine Token werden serverseitig gespeichert.

Erlaubte Hosts

Das MCP SDK aktiviert einen Anti-DNS-Rebinding-Schutz, der nur whitelisted Hosts zulässt. Die Standard-Hosts sind:

  • mcp.plus-tard.com

  • localhost, 127.0.0.1 (für die Entwicklung)

Um Ihre eigene Domain hinzuzufügen, bearbeiten Sie die Liste in main.py (TransportSecuritySettings.allowed_hosts).


Projektstruktur

.
├── main.py                # FastAPI + FastMCP + middleware X-Api-Key
├── app/
│   ├── config.py          # Settings via pydantic-settings
│   ├── auth/              # Dependency X-Api-Key (réutilisable hors MCP)
│   ├── models/            # Schémas pydantic v2 (post, account, user)
│   ├── services/          # PlusTardClient async (httpx)
│   └── tools/             # 5 tools métier (str → str)
├── tests/                 # 24 tests pytest-asyncio
├── deploy/
│   ├── README.md          # Guide déploiement VPS
│   ├── vhost.d/           # Snippet nginx-proxy SSE
│   └── twig/              # Template Symfony pour la doc utilisateur
├── docs/index.html        # Doc utilisateur statique (HTML)
├── Dockerfile
├── docker-compose.yml
└── pyproject.toml

Sicherheit

  • Nur HTTPS in der Produktion (TLS via Let's Encrypt).

  • Keine Protokollierung von Beitragsinhalten oder API-Token.

  • Anti-DNS-Rebinding via TransportSecuritySettings des MCP SDK.

  • Isolierte Multi-Tenancy : Jede Anfrage wird mit einem eigenen httpx-Client verarbeitet, der am Ende der Anfrage geschlossen wird (kein Cross-User-Pooling).

  • Wenn Sie vermuten, dass ein Schlüssel kompromittiert wurde, widerrufen Sie ihn in Ihrem Plus Tard-Bereich.


Roadmap

  • [ ] Strukturierte Protokollierung (JSON, ohne Token oder Inhalte)

  • [ ] Ratenbegrenzung pro API-Schlüssel

  • [ ] Prometheus-Metriken

  • [ ] OAuth-Flow für Connectors (statt Copy-Paste-API-Schlüssel)

  • [ ] Unterstützung für completion/complete MCP für page_id-Vorschläge (wartet auf ein Python-SDK, das ToolReference bereitstellt)

Ideen und Beiträge sind willkommen — öffnen Sie ein Issue oder einen PR.



Lizenz

MIT © 2026 Plus Tard — Boréales Créations.

Made with ❤️ in France.

Available Tools

5 tools
get_userA

Récupère les informations d'un utilisateur Plus Tard par son id, incluant ses providers connectés (Facebook, Instagram, LinkedIn, etc.) et leurs sous-comptes (pages Facebook, comptes Instagram pro...). Utilise ce tool avant schedule_post pour identifier le bon page_id à utiliser : pour Facebook/Instagram, c'est l'id du sous-compte (providers[].accounts[].id) ; pour les autres providers (LinkedIn, Twitter, TikTok, Threads, Bluesky), c'est providers[].providerId.

Inputs: user_id (required). Returns: result

list_accountsA

Liste tous les comptes réseaux sociaux connectés à Plus Tard. Utilise ce tool pour savoir quels comptes sont disponibles avant de planifier un post.

Inputs: no named parameters. Returns: result

register_userA

Crée un nouvel utilisateur Plus Tard et retourne une URL OAuth permettant de connecter ses comptes de réseaux sociaux. Utilise ce tool quand l'utilisateur veut onboarder un nouveau client ou se créer un compte. Email et langue sont optionnels — la langue par défaut est 'fr'. L'URL OAuth doit être ouverte dans un navigateur par l'utilisateur final pour qu'il connecte ses réseaux. Elle est valable 24h.

Inputs: email, language. Returns: result

schedule_postA

Planifie un post sur un seul réseau social via Plus Tard. Utilise ce tool quand l'utilisateur veut programmer, publier ou scheduler du contenu sur Facebook, Instagram, LinkedIn, X/Twitter, TikTok, Threads, Bluesky ou Google My Business.

IMPORTANT :
- Un appel = un réseau. Pour publier sur plusieurs réseaux, appelle
  ce tool plusieurs fois.
- AVANT D'APPELER ce tool : appelle d'abord list_accounts (ou
  get_user pour la vue détaillée) pour obtenir le page_id correct.
- Le `page_id` à passer ici est l'identifiant EXTERNE du compte sur
  le réseau social (champ `accountId` / `page_id` retourné par
  list_accounts, ex. "1097653263583548"), PAS l'identifiant interne
  Plus Tard (champ `id` / `internal_id`, ex. "34"). Confondre les
  deux crée un post mal rattaché et apparaissant comme "compte
  déconnecté".
- Pour les providers sans sous-comptes (Twitter, LinkedIn, TikTok,
  Threads, Bluesky, Google), utilise le `providerId` retourné par
  get_user.
- Instagram exige au moins une image ou vidéo dans image_posts.
- planned_at doit être une date/heure UTC future au format ISO8601
  (ex: 2026-05-01T10:00:00Z).

Inputs: page_id (required), provider (required), planned_at (required), text, +3 more. Returns: result

validate_api_keyA

Vérifie que la clef API Plus Tard fournie est valide. Utilise ce tool si l'utilisateur veut diagnostiquer un problème d'authentification ou simplement confirmer que sa clef est active. Retourne aussi la date de création et d'expiration de la clef.

Inputs: no named parameters. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a unique, non-overlapping purpose: validate_api_key checks authentication, list_accounts retrieves connected accounts, schedule_post creates a post, register_user creates a user, and get_user retrieves user details. No confusion between tools.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern in lowercase with underscores (validate_api_key, list_accounts, schedule_post, register_user, get_user). The naming style is uniform and predictable.

    Tool Count5/5

    With 5 tools, the server offers a focused set of operations for a social media scheduling service. Each tool addresses a distinct need without redundancy, fitting well within the typical 3-15 tool range.

    Completeness3/5

    The server covers core operations (validation, listing, scheduling, user management) but lacks tools for retrieving, updating, or deleting scheduled posts. This is a notable gap for a scheduling domain, preventing full lifecycle management.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Schedule and manage social media posts across 13 platforms (Bluesky, Threads, Instagram, LinkedIn, Mastodon, YouTube, Facebook, Pinterest, Telegram, Nostr, X/Twitter, Discord, Tumblr and more). OAuth 2.0 + PKCE, 10 tools, draft-first workflow for AI agents.
      2
      10
      28
      AGPL 3.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables finding trending content across social networks and scheduling/publishing posts with full lifecycle management.
      125 npm
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Schedule, publish, and measure social posts on Facebook, Instagram, TikTok, LinkedIn, Threads, Pinterest, and X for one brand or many.
      38
      MIT