Spanish Total.js
English
Documentation For AI agents
Contents

Connect an AI

TotalSocial has an MCP server, so an assistant on your computer (Claude, Cursor or any MCP client) can write your post, attach its pictures and videos, and publish it.

.md GitHub
On this page

Turn it on

  1. Open AI assistants.
  2. Turn on Let assistants connect.
  3. In Where it publishes without asking, mark the connected networks where it may publish without asking you first.
  4. Copy what your client needs. The window has it ready for Claude Code, for Cursor and other MCP clients, for Claude Desktop and for code mode.

The address is http://127.0.0.1:7270/mcp. If that port is in use, TotalSocial takes the next free one, up to 7279, and the window has the right address.

The server is off until you turn it on. It listens only on this computer, and only while TotalSocial is open. It asks for a token, which is kept in the secure store of your system. With New token, the assistants that have the old one stop working until you give them the new one.

Whoever has the token can publish in your networks. Give it only to your assistants.

What it can do

It can see your networks and the post that you are writing, write it, attach files of your computer to it, publish it and look at your last posts. You see each change in Write as it happens.

It cannot connect or disconnect networks, nor see what you gave to connect them.

When it publishes

NetworkWhat happens
Connected and marked in Where it publishes without askingIt is published
Connected and not markedTotalSocial asks you: An AI assistant wants to publish this post, with the text and the networks. Press Publish or Do not publish. Closing the window is a no, and so is leaving it for three minutes
Posted by handIt waits for you in Activity, as always: you press Post
Read what it wants to publish before you say yes. It goes in your name.

The tools

ToolWhat it does
Networks_listYour networks, how each one is published and whether it may publish there without asking
Draft_getThe post that you are writing
Draft_writeChanges the title, the text, the topics, the networks, the version of each network and the options of YouTube and Reddit
Media_attachAttaches a picture or a video of this computer, by its full path
Media_removeTakes a file out of the post
Post_publishPublishes the post, and says what happened in each network
Posts_listThe last posts, up to 50, with what happened in each network

What the assistants did has the last calls since you opened TotalSocial.

Code mode

The assistant can also write one script instead of calling the tools one by one: it spends less and goes faster. Download the client, which needs Node.js 18 or newer:

curl -H 'Authorization: Bearer YOUR_TOKEN' 'http://127.0.0.1:7270/mcp/client.js' -o totalsocial.js

It has a function for each tool:

const api = require('./totalsocial.js')('YOUR_TOKEN');

(async function() {
    await api.Draft_write({ text: 'Hello from TotalSocial', topics: ['totaljs'] });
    console.log(await api.Post_publish({}));
})();

A function that fails throws an error with the message of TotalSocial. The window has this code with your address and your token.

Made in Europe