home / mcp / mcp server antv

MCP Server AntV

๐Ÿง‘๐Ÿปโ€๐Ÿ’ป MCP Server for @antvis visualization development, which provides documentation context and examples for visualization developers.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "antvis-mcp-server-antv": {
      "command": "npx",
      "args": [
        "-y",
        "@antv/mcp-server-antv"
      ]
    }
  }
}

You run this MCP server to access AntV documentation context and code examples directly in your development environment. It detects your usage intent, fetches relevant AntV docs and samples, and provides a streamlined way to work with libraries like G2, G6, and F2 across visualization tasks.

How to use

To enable practical access to AntV documentation and code examples from your MCP client, connect to the AntV MCP server that you run locally or remotely. Your client will automatically extract your intent, identify the AntV library in use (G2, G6, or F2), and fetch relevant docs and code samples to speed up development and QA tasks.

How to install

Prerequisites you need before starting: Node.js v18 or newer and an MCP client such as Cursor, VSCode MCP, or another MCP client.

Install the AntV MCP server using the exact command shown in the configuration you will run with your MCP client. The common start command uses npx to pull the server package and run it in place.

{
  "mcpServers": {
    "mcp-server-antv": {
      "command": "npx",
      "args": ["-y", "@antv/mcp-server-antv"]
    }
  }
}

Additional notes

On Windows systems, you can start the MCP server with the same approach using a Windows-friendly command sequence as shown in the configuration examples.

Contributing

If you want to contribute, clone the project, install dependencies, build the server, and start it using the commands below.

git clone https://github.com/antvis/mcp-server-chart.git
cd mcp-server-chart
npm install
npm run build
npm run start

Available tools

extract_antv_topic

Detects user intent, identifies the library (G2/G6/F2), and infers task complexity for targeted context extraction.

query_antv_document

Fetches latest AntV documentation and code samples with contextual information.