MCP for publishing to social networks
Connect OnePost to the AI client to manage projects, select recipients, and publish after approval. Requires a OnePost account and an approved MCP client.
Other MCP clients
- Add a remote MCP server to the settings with Streamable HTTP transport.
- Paste the MCP address and select OAuth. If the client only supports headers, specify the OnePost API key in Authorization: Bearer.
- Open the tools list and verify the connection with a request for the list of projects.
Remote server settings
Language
JSON
{
"url": "https://onepost.cc/mcp",
"transport": "streamable-http",
"authentication": "OAuth 2.0"
}Tools and projects
Language
cURL
# ONEPOST_API_KEY is your OnePost key. Do not paste it into a chat.
curl 'https://onepost.cc/mcp' \
-H "Authorization: Bearer $ONEPOST_API_KEY" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-03-26",
"capabilities": {},
"clientInfo": {
"name": "onepost-cli",
"version": "1.0.0"
}
}
}'
curl 'https://onepost.cc/mcp' \
-H "Authorization: Bearer $ONEPOST_API_KEY" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}'
curl 'https://onepost.cc/mcp' \
-H "Authorization: Bearer $ONEPOST_API_KEY" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "list_profiles",
"arguments": {}
}
}'The tools/list response contains the exact arguments for each tool. Use publish_post to send, schedule_post to schedule, and publication_status to check the result. Preserve the idempotencyKey for operations: if the result is unknown, call recover_publication with the same key.
OnePost Plugin for Codex
Skill $onepost guides you step-by-step through the setup and uses the OnePost MCP to work with projects and social networks.
- If the package is added to the local Codex directory, open Plugins and install OnePost. Details are in the Codex instructions for local plugins.
- Create a OnePost account or log in. Create a project, then connect an approved MCP client via OAuth. In the OnePost window, select projects and confirm access.
- In a new Codex chat, type
$onepost help me set up publishing. The skill will guide you on how to select a project and connect the appropriate social network. - Before a supported post, the skill shows the content, caption, and accounts. Verify them and confirm the send with a separate message.
You can start with Free within the plan allowance. For MP4 publishing, use the workspace or REST API.