An MCP (Model Context Protocol) server that connects AI assistants to Tidio live chat - with automatic setup
- Automatic Setup: Connect to Tidio with one command - no manual key copying
- OAuth Authentication: Opens browser for secure Tidio login, auto-retrieves your public key
- Credential Persistence: Credentials are saved locally for future sessions
- Embed Code Generation: Get ready-to-use JavaScript code for any website
npm install tidio-mcp-connectorOr clone and build locally:
git clone https://github.com/your-username/tidio-mcp-connector.git
cd tidio-mcp-connector
npm install
npm run buildAdd to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"tidio": {
"command": "npx",
"args": ["tidio-mcp-connector"]
}
}
}This MCP connector works with Lovable and similar AI-powered development platforms. Add it as a custom MCP server.
npx @modelcontextprotocol/inspector npx tidio-mcp-connectorConnect to Tidio and automatically get your public key.
How it works:
- Opens your browser to Tidio's login page
- You authenticate with your Tidio account
- Returns your public key and embed code automatically
Parameters:
site_url(required): The website URL where Tidio will be embedded
Example:
Connect Tidio to https://mywebsite.com
Check your connection status and get your embed code.
Parameters: None
Clear stored credentials.
Parameters: None
Generate embed code for a specific public key (if you already have one).
Parameters:
public_key(required): Your Tidio public keyloading_mode(optional):"async"(default) or"sync"
- User calls
tidio_connectwith their website URL - Browser opens to Tidio's authentication page
- User logs in to their Tidio account
- Callback received - MCP server gets the refresh token
- API calls made - exchanges token for access token, then retrieves public key
- Credentials saved to
~/.tidio-mcp/credentials.json - Embed code returned - ready to add to the website
Credentials are stored locally at ~/.tidio-mcp/credentials.json:
{
"public_key": "abc123...",
"access_token": "...",
"refresh_token": "...",
"site_url": "https://example.com",
"created_at": "2024-01-01T00:00:00.000Z",
"updated_at": "2024-01-01T00:00:00.000Z"
}The connector generates optimized async loading code:
<script type="text/javascript">
document.tidioChatCode = "YOUR_PUBLIC_KEY";
(function() {
function asyncLoad() {
var tidioScript = document.createElement("script");
tidioScript.type = "text/javascript";
tidioScript.async = true;
tidioScript.src = "//code.tidio.co/YOUR_PUBLIC_KEY.js";
document.body.appendChild(tidioScript);
}
if (window.attachEvent) {
window.attachEvent("onload", asyncLoad);
} else {
window.addEventListener("load", asyncLoad, false);
}
})();
</script># Install dependencies
npm install
# Run in development mode
npm run dev
# Build for production
npm run build
# Run built version
npm start- Node.js 18+
- A Tidio account (free tier works)
MIT
- Tidio - Live chat and chatbot platform
- Model Context Protocol - Open standard for AI integrations
- Lovable - AI-powered app development