@todiagram/todiagram-mcp
v1.1.0
Published
ToDiagram MCP Server
Downloads
86
Readme
todiagram-mcp
Connect ToDiagram to Cursor, Claude, Windsurf, and other AI assistants.
The Model Context Protocol (MCP) standardizes how Large Language Models (LLMs) talk to external services like ToDiagram. It connects AI assistants directly with your ToDiagram account and allows them to perform tasks like creating diagrams from code, prompt or directly data.
Prerequisites
You will need Node.js installed on your machine. You can check this by running:
node -vIf you don't have Node.js installed, you can download it from nodejs.org.
Setup
1. API Key
First, go to ToDiagram Editor and create an API Key by clicking the account icon at top right, go to the API Key section. Give it a name that describes its purpose, like "Cursor MCP Server" and set an expiry time.
2. Configure MCP client
Next, configure your MCP client (such as Cursor) to use this server. Most MCP clients store the configuration as JSON in the following format:
{
"mcpServers": {
"todiagram": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@todiagram/todiagram-mcp@latest"
],
"env": {
"TODIAGRAM_API_KEY": "<todiagram-api-key>"
}
}
}
}Replace <todiagram-api-key> with the api key you created in step 1.
