01Overview
An MCP server that renders TiKz diagrams to SVG.
02Prerequisites
You must have a working TeX installation with latex and dvisvgm in your PATH.
latex(usually part of TeX Live or MiKTeX)dvisvgm
04Usage
Building
shell
pnpm build
Running
To run the server with an MCP client (like Claude Desktop or an IDE):
json
{
"mcpServers": {
"tikz": {
"command": "node",
"args": ["/path/to/tikzmcp/dist/index.js"]
}
}
}Or using tsx for development:
json
{
"mcpServers": {
"tikz": {
"command": "npx",
"args": ["-y", "tsx", "/path/to/tikzmcp/src/index.ts"]
}
}
}