RapidChart MCP Server
Model Context Protocol (MCP) server for RapidChart - Generate and manage diagrams directly from Cursor IDE.
Features
- 🎨 Generate diagrams from code (Class, ER, Sequence, Architecture, etc.)
- 🔄 Update existing diagrams with new code
- 📁 Organize diagrams in workspaces and folders
- 🤖 Support for multiple AI models (GPT-5, Claude, Gemini)
- 🔐 Secure Bearer token authentication
- 💳 Respects your RapidChart credits and API keys
Installation
pip install rapidchart-mcp
Or install from source:
git clone https://github.com/Samicostox/rapidchart-mcp.git
cd rapidchart-mcp
pip install -e .
Configuration
1. Generate API Token
- Go to RapidChart Settings
- Navigate to "API Tokens"
- Click "Generate New Token"
- Copy the token (starts with
rc_)
2. Configure Cursor
Add to your Cursor MCP settings (~/.cursor/mcp.json or workspace .cursor/mcp.json):
{
"mcpServers": {
"rapidchart": {
"command": "python",
"args": ["-m", "rapidchart_mcp"],
"env": {
"RAPIDCHART_API_TOKEN": "rc_your_token_here",
"RAPIDCHART_API_URL": "https://fastuml-0bb6938ba599.herokuapp.com",
"RAPIDCHART_DEFAULT_TYPE": "general",
"RAPIDCHART_FEW_PROMPTS": "false",
"RAPIDCHART_GUIDELINES": "true"
}
}
}
}
Usage
In Cursor
Once configured, you can use natural language:
User: "Generate a class diagram from src/models.py"
→ Cursor reads the file and calls RapidChart MCP
→ Returns diagram URL
User: "List my available AI models"
→ Shows models with your credit status
User: "Update diagram abc123 with new code from src/models.py"
→ Updates the diagram with context awareness
Available Tools
list_models- Show available AI models and your creditslist_workspaces- List your workspaceslist_folders- List folders in a workspacelist_diagrams- Browse your diagramscreate_diagram- Generate diagram from codeget_diagram- Get specific diagram detailsupdate_diagram- Update diagram with new codedelete_diagram- Delete a diagrammove_diagram- Move diagram to different folder/workspace
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
RAPIDCHART_API_TOKEN |
✅ Yes | - | Your RapidChart API token |
RAPIDCHART_API_URL |
No | Production URL | API base URL |
RAPIDCHART_DEFAULT_TYPE |
No | general |
Default diagram type |
RAPIDCHART_DEFAULT_MODEL |
No | Auto | Default AI model ID |
RAPIDCHART_FEW_PROMPTS |
No | false |
Enable multi-step thinking |
RAPIDCHART_GUIDELINES |
No | true |
Include diagram guidelines |
RAPIDCHART_TIMEOUT |
No | 300 |
Request timeout (seconds) |
Development
# Clone the repo
git clone https://github.com/rapidchart/rapidchart-mcp.git
cd rapidchart-mcp
# Install in development mode
pip install -e .
# Run tests
pytest
# Run the server directly
python -m rapidchart_mcp
Known Issues
503 Timeout on Diagram Creation
Symptom: You get a 503 Service Unavailable error, but the diagram is created successfully.
Cause: Heroku has a 30-second router timeout. Complex diagrams can take 30-60+ seconds to generate.
Solution:
- The diagram IS being created despite the error
- Run
list_diagramsto see your newly created diagram - This is a Heroku limitation, not a bug in RapidChart
Workaround: Use simpler code or smaller diagrams for faster generation.
License
MIT
Support
- 📧 Email: hello@rapidchart.com
- 🐛 Issues: GitHub Issues
- 📖 Docs: docs.rapidchart.com
Metadata
Release files for rapidchart-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rapidchart_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / rapidchart_mcp-0.1.0-py3-none-any.whl
| Download URL | rapidchart_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d95644fc1811e9d19a7c7a31878d52c4df1ac58207aa382c11aad499954cc35c
|
|
BLAKE2b-256 checksum How to use checksums |
2d1609cc97a4c51adee70ee3d97de3f98e0a93c88575a953b400c40ff6a89fd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.5
|
Security for rapidchart-mcp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.