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.
Turn it on
- Open AI assistants.
- Turn on Let assistants connect.
- In Where it publishes without asking, mark the connected networks where it may publish without asking you first.
- 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
| Network | What happens |
|---|---|
| Connected and marked in Where it publishes without asking | It is published |
| Connected and not marked | TotalSocial 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 hand | It 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
| Tool | What it does |
|---|---|
Networks_list | Your networks, how each one is published and whether it may publish there without asking |
Draft_get | The post that you are writing |
Draft_write | Changes the title, the text, the topics, the networks, the version of each network and the options of YouTube and Reddit |
Media_attach | Attaches a picture or a video of this computer, by its full path |
Media_remove | Takes a file out of the post |
Post_publish | Publishes the post, and says what happened in each network |
Posts_list | The 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.jsIt 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.