D3 MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
D3 MCP Server
A TypeScript Express-based Model Context Protocol (MCP) server for D3.js information. This server provides D3 visualization documentation, chart recommendations, and code generation through the MCP protocol.
Features
π D3 Resources: Access documentation and examples from D3 sources
π Chart Recommendation: Get recommendations for the right chart type based on your data and goals
π» Code Generation: Generate D3 code examples for various chart types
π MCP Integration: Connect AI tools directly to D3 knowledge
Related MCP server: nteract/semiotic
Prerequisites
Node.js 16.x or higher
npm or yarn
Installation
Clone the repository
git clone https://github.com/iamfiscus/mcp-d3-server.git
cd mcp-d3-serverInstall dependencies
npm installBuild the project
npm run buildUsage
Start the server
npm startThe server will be running at http://localhost:3000 (or the PORT specified in your .env file)
Connect to the MCP endpoint at http://localhost:3000/mcp-sse using an MCP client
Development
For development with hot reloading:
npm run devAvailable MCP Resources and Tools
Resources
d3-docs://{topic}: Access D3 documentation on specific topics
d3-charts://{chartType}: Get information about specific D3 chart types
Tools
generate-d3-chart: Generate D3 code for different chart types
Parameters: chartType, dataFormat, features (optional)
recommend-chart: Get recommendations for D3 chart types based on your data
Parameters: dataDescription, purpose
Examples
MCP Client Connection Example
import { McpClient } from "@modelcontextprotocol/sdk/client/mcp.js";
import { SseClientTransport } from "@modelcontextprotocol/sdk/client/sse.js";
// Create an MCP client
const client = new McpClient();
// Connect to the D3 MCP server
const transport = new SseClientTransport("http://localhost:3000/sse");
await client.connect(transport);
// Get chart recommendations
const result = await client.invokeTool("recommend-chart", {
dataDescription: "Monthly sales data for 5 product categories over 2 years",
purpose: "Show trends and compare performance across categories"
});
console.log(result.content[0].text);License
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Dashboards as data. Author, validate, render, and share dvt dashboards from any MCP client.
Governed data discovery, exact queries, decisions, simulations, and runtime utilities over MCP.
Chartbrew connects your data to dashboards. Explore data and create chart previews through MCP.
AI Data Components over MCP: working what-if apps, interactive tables and maps, plus 90 chart types.
Related MCP Servers
- AlicenseAqualityDmaintenanceA MCP server for data visualization. It exposes tools to render charts (line, bar, pie, scatter, heatmap, etc.) from data and returns plots as either image/text/mermaid diagram.24MIT
- AlicenseAqualityAmaintenanceMCP for Semiotic, a streaming/static data visualization library58,683 npm2,717Apache 2.0
- AlicenseNot gradedqualityCmaintenanceAI-powered data visualization MCP server that generates publication-ready charts from natural language descriptions while keeping data local.12 PyPI3AGPL 3.0
- AlicenseAqualityBmaintenanceMCP server that enables AI agents to recommend and generate charts from datasets using natural language, supporting 46 chart types and multiple output formats.28 npmMIT