Skip to main content
Glama
boreales

mcp-plus-tard

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.


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-Keykeine 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.

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/boreales/mcp-plus-tard'

If you have feedback or need assistance with the MCP directory API, please join our Discord server