modelscope·@inteligencianegociosmmx/vegaLite_mcp_server
暂无描述。
A Model Context Protocol (MCP) server that provides AI assistants with access to Vega-Lite and Deneb documentation, examples, and validation tools.
This server enables AI assistants like Claude to:
# Clone the repository
git clone https://github.com/inteligencianegociosmmx/vegaLite_mcp_server.git
cd vegaLite_mcp_server
# Install dependencies and build
npm install
npm run build
Claude Code (VS Code) - Recommended
# One command installation
claude mcp add vegalite node /path/to/vegaLite_mcp_server/dist/index.js
Then completely close and reopen VS Code (important - don't just reload).
Claude Desktop
Edit your config file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.jsonAdd:
{
"mcpServers": {
"vegalite": {
"command": "node",
"args": ["/absolute/path/to/vegaLite_mcp_server/dist/index.js"]
}
}
}
Restart Claude Desktop.
Claude Code: Type /mcp - you should see "vegalite" listed
Claude Desktop: Look for the tools indicator
Search for "bar chart" in Vega-Lite
Show me a scatter plot example
Validate this spec: {"$schema": "https://vega.github.io/schema/vega-lite/v5.json", "mark": "bar", ...}
| Tool | What it does | Example |
|---|---|---|
search_docs | Search Vega-Lite and Deneb docs | "How do filter transforms work?" or "How does Deneb work with Power BI?" |
get_example | Get examples by category | "Show me a line chart example" |
validate_spec | Validate JSON specs | "Validate this Vega-Lite spec: {...}" |
get_schema_info | Get schema details | "What encoding channels are available?" |
Deneb is a certified custom visual for Microsoft Power BI that uses Vega-Lite. This server now includes Deneb documentation to help Power BI users:
Try: "How do I use cross-filtering in Deneb?" or "What's the difference between Vega-Lite and Deneb?"
Server not showing up?
node /path/to/dist/index.js (should say "running on stdio")/mcp (Claude Code) or look for tools indicator (Claude Desktop)Tools not working?
npm run build # Rebuild the project
Remove the server:
claude mcp remove vegalite # Claude Code
# Or manually delete from config file
npm run watch # Auto-rebuild on changes
npm run scrape # Fetch latest Vega-Lite docs
src/
index.ts # Main MCP server
tools/
search.ts # Documentation search
examples.ts # Example retrieval
validate.ts # Spec validation
utils/
scraper.ts # Documentation scraper
Ctrl+Shift+P (or Cmd+Shift+P on Mac)Claude Code: Edit MCP Settings{
"mcpServers": {
"vegalite": {
"command": "node",
"args": ["/absolute/path/to/dist/index.js"]
}
}
}
Add the same configuration to your client's MCP settings file. Check your client's documentation for the config file location.
</details>Contributions welcome! Please submit a Pull Request.
See CONTRIBUTING.md for development guidelines.
For information about deploying as a remote server, see docs/DEPLOYMENT.md.
MIT License - See LICENSE
Built with Model Context Protocol Powered by Vega-Lite