Permite que los agentes de IA creen gráficos expresivos, interactivos y de alta calidad a partir de especificaciones sencillas y editables por humanos a través de múltiples backends de renderizado.
También conocido como microsoft/flint-chart, flint-chart-mcp
- Stars
- 4577
- Herramientas
- —
- Descargas, 30 días
- —
- Última versión
- —
- Último commit
- 10 nov 2026
- Licencia
- MIT
¿Qué es Flint MCP?
Flint es un MCP server. Permite que los agentes de IA creen gráficos expresivos, interactivos y de alta calidad a partir de especificaciones sencillas y editables por humanos a través de múltiples backends de renderizado.
Resumen generado a partir del README del proyecto
Acerca del MCP server de Flint
Flint es un lenguaje de visualización diseñado para ayudar a los agentes de IA a generar gráficos interactivos y de alta calidad mediante especificaciones simples. Funciona como un MCP server que se integra con clientes como Claude, Cursor y GitHub Copilot en VS Code. Los usuarios pueden configurarlo localmente usando npx o conectarse a un servidor HTTP alojado. El sistema permite que los agentes produzcan visualizaciones interactivas, archivos estáticos PNG o SVG, o especificaciones nativas del backend directamente dentro de una conversación.
La plataforma admite 52 tipos de gráficos diferentes a través de cinco backends de renderizado distintos, incluyendo Vega-Lite, ECharts, Chart.js, Plotly y gráficos nativos de Excel. Simplifica el proceso de creación mediante el uso de tipos semánticos para gestionar automáticamente escalas, ejes y formatos. Los desarrolladores también pueden usar la librería npm flint-chart para embeber estos gráficos en aplicaciones de React o JavaScript vanilla, utilizando 14 temas preestablecidos y 23 presets de interacción para mantener la consistencia visual.
Qué puedes hacer con él
- 1Generar gráficos financieros interactivosPide a un agente que obtenga datos bursátiles y los muestre usando un estilo profesional específico con efectos al pasar el cursor.
- 2Construir dashboards de datos con ReactIntegra la librería Flint en una aplicación web para renderizar gráficos complejos a partir de objetos de datos.
- 3Crear reportes de Excel editablesUsa el agente para producir plantillas de gráficos que puedan utilizarse directamente en software de hojas de cálculo.
- 4Aplicar temas de marca consistentesAplica una identidad visual unificada en múltiples tipos de gráficos diferentes utilizando una única especificación de tema.
Escrito a partir del README del proyecto. Cada caso de uso se verifica con una cita del mismo.
Cómo instalar Flint MCP
Formatos verificados el 10 nov 2026Añadir a CursorAñadir a GooseInstalar Flint MCP en Claude Code
$ claude mcp add flint-chart -- npx -y flint-chart-mcpInstalar Flint MCP en Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"flint-chart": {
"command": "npx",
"args": [
"-y",
"flint-chart-mcp"
]
}
}
}Instalar Flint MCP en VS Code
.vscode/mcp.json
{
"servers": {
"flint-chart": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"flint-chart-mcp"
]
}
}
}Instalar Flint MCP en VS Code CLI
$ code --add-mcp '{"name":"flint-chart","type":"stdio","command":"npx","args":["-y","flint-chart-mcp"]}'Instalar Flint MCP en Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"flint-chart": {
"command": "npx",
"args": [
"-y",
"flint-chart-mcp"
]
}
}
}Instalar Flint MCP en Codex
$ codex mcp add flint-chart -- npx -y flint-chart-mcpInstalar Flint MCP en Codex config.toml
~/.codex/config.toml
[mcp_servers.flint-chart] command = "npx" args = ["-y", "flint-chart-mcp"]
Instalar Flint MCP en Gemini CLI
$ gemini mcp add -s user flint-chart npx -- -y flint-chart-mcpInstalar Flint MCP en Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"flint-chart": {
"command": "npx",
"args": [
"-y",
"flint-chart-mcp"
]
}
}
}Verificaciones automáticas
Ejecutado 12 nov 2026Informe completo →Pasó nuestras verificaciones automáticas. Esto no es una auditoría de seguridad: lee el código y dale al servidor el acceso más limitado que necesite. Cómo funcionan las verificaciones
- Repositorio de origen vinculado y accesibleAprobado
- Licencia de código abierto (OSI)Aprobado
- Commit o lanzamiento en el último añoAprobado
- El nombre del paquete no es similar a un paquete popularAprobado
- El endpoint remoto usa HTTPSNo verificado
- Las herramientas destructivas están etiquetadasNo verificado
- Sin instrucciones ocultas para el modeloAprobado
- No hay avisos críticos en el paquete ni en sus dependenciasNo verificado
README
Ver en GitHubProject site · 中文主页 · MCP server
Flint is a visualization language that lets AI agents reliably create expressive, good-looking and interactive charts from simple, human-editable chart specs. It is available as an MCP server for everyday use with your agent, and as an npm library for building interactive applications.
Flint supports 52 chart types across 5 rendering backends — Vega-Lite, ECharts, Chart.js, Plotly, and native Excel charts — through one unified interface, with 14 themes and 23 interaction presets. To create bespoke visualizations, design custom themes in the Theme Lab and build advanced interactions with the Flint API.
https://github.com/user-attachments/assets/c1cda0fa-3ea7-41af-b3fd-a127bc83d641
Updates
- October 19, 2026 — Flint 1.0 introduces Flint Interactive: interaction presets, semantic events, and an interaction API that connects charts to your app. (changelog)
- August 12, 2026 — Flint 0.5.1 extends visual themes to the Plotly backend and adds Vega-Lite Calendar Heatmap.
- August 5, 2026 — Flint 0.5.0 introduces formal visual themes with preset themes, custom ThemeSpec authoring, and preset inheritance. (v0.5.0)
- July 24, 2026 — Flint 0.4.0 adds 38 Plotly chart types and 18 native, editable Excel chart templates. (v0.4.0)
See the changelog for every release.
Get started
In your agent app (MCP server)
Chart right in the conversation with any MCP client, such as GitHub Copilot in VS Code, Claude, Claude Code, Codex, or Cursor.
⚡ Quick start: paste this setup request into your agent and let it configure Flint for the current project. For manual setup, see the MCP server guide.
Help me set up Flint as an MCP server named "flint"!
1. Add it to my client config, using whichever option my client supports:
- a local (stdio) server: npx -y flint-chart-mcp
- the hosted server over HTTP: https://flint.data-formulator.ai/mcp
2. Verify the setup by listing the available Flint chart types.
3. Show me a fun first chart: how many moons each planet has, in a Flint theme you like.
Then ask your agent for a chart, for example:
Go to Yahoo Finance, find today's percentage change for the Magnificent Seven
tech stocks, and compare their performance with Flint in Economist style.
Let me hover to read each stock's change.
The agent can open an interactive chart right in the conversation, return a static PNG or SVG, or produce a backend-native spec.
Build with your coding agent
Are you a developer building agent apps? Use
flint-chart, Flint's npm library,
to bring charts into your apps, dashboards, and data stories:
npm install flint-chart
The library compiles Flint specs into backend-native chart specs and provides React and vanilla JavaScript APIs for embedding interactive charts.
A Flint spec describes the data, semantic types, and field mappings, with
optional theme and interaction settings. In React, pass it to <FlintChart>
to embed an interactive chart:
import type { ChartAssemblyInput } from 'flint-chart';
import { FlintChart } from 'flint-chart/react';
const spec: ChartAssemblyInput = {
data: { values: [
{ Month: '2026-01', Users: 1200 },
{ Month: '2026-02', Users: 1800 },
] },
semantic_types: { Month: 'YearMonth', Users: 'Quantity' },
chart_spec: {
chartType: 'Line Chart',
encodings: { x: 'Month', y: 'Users' },
},
theme_spec: 'economist',
interaction_spec: { interactions: [{ type: 'inspect-index' }] },
};
<FlintChart spec={spec} />
You can copy the following instruction to your coding agent to build a chart with Flint, then adapt it to your data and app:
Read Flint's chart authoring and interaction skills:
https://github.com/microsoft/flint-chart/blob/main/agent-skills/flint-chart-author/SKILL.md
https://github.com/microsoft/flint-chart/blob/main/agent-skills/flint-interaction-author/SKILL.md
Use these skills to add a chart to this app.
Install flint-chart and the renderer dependencies needed for this project.
Plot monthly users by region from our data in Economist style.
Let readers hover to compare regions at each month, and add a region selector
that updates the chart.
Integrate it with the app's existing layout and verify it works.
The agent can also generate backend-native specs or editable Excel charts for reports and documents. See the API reference, interaction API, and live editor for the underlying APIs and examples.
How it works
A Flint spec consists of the data, semantic types, the chart spec, and optional theme and interaction specs. Instead of relying on complex user-side logic to glue them together, the compiler resolves each part against the others and composes a complete backend-native spec.
1. Describe data with semantic types
Fields are described with semantic types such as Rank, YearMonth, Delta,
or Temperature, along with their domains and units. The compiler uses them to
infer parsing, scales, axes, formatting, and colors — a short Flint spec becomes
a complete backend spec.
2. Build charts once, render on any backend
Charts are defined with high-level chart types and encodings. The compiler adapts sizing, spacing, labels, and legends to the data, for example as it gets denser, and the same spec renders across Vega-Lite, ECharts, Chart.js, and Plotly, or as native Excel charts. See the API reference and the gallery.
3. Unify the look with a theme spec
Geometry, typography, and color are reusable formal specs that apply across a whole chart library, independent of the data and chart type. Pick one of 14 preset themes, such as the New York Times, the Economist, Swiss, or McKinsey, or inherit one and override only what belongs to your brand:
theme_spec: { extends: 'economist', id: 'our-brand', ink: { series: { single: '#6b3fa0' } } }
Compare every preset in the theme explorer, design your own in the Theme Lab, and see the theme guide for the full reference.
4. Add interactions with an interaction spec
Flint provides 23 interaction presets and a programming API for building interactive charts into applications. The compiler resolves user interaction events into semantic information, so your app only answers with high-level chart updates:
import { FlintChart } from 'flint-chart/react';
<FlintChart
spec={{ ...input, interaction_spec: { interactions: [{ type: 'brush-x' }] } }}
onChange={({ phase, state }) => {
if (phase === 'commit') table.filter(state.selected);
}}
/>
Try the presets in the interaction gallery, see bespoke ones in advanced interactions, and read the interaction spec and programming API.
Documentation
- Project site — gallery, live editor, themes, and interactions
- API reference and backend references for Vega-Lite, ECharts, Chart.js, Plotly, and Excel
- Theme guide, interaction spec, and interaction programming API
- MCP server guide and agent skills
- Paper on arXiv
A Python port is in preview as source in packages/flint-py; its package is not yet released.
Contributing
Contributions are welcome — especially new chart templates and rendering backends. See CONTRIBUTING and the development guide.
git clone https://github.com/microsoft/flint-chart
cd flint-chart
npm install # workspaces: packages/flint-js, packages/flint-mcp, site
npm run typecheck # typecheck flint-chart and flint-chart-mcp
npm run test # Vitest for both packages
npm run build # build both packages
npm run site # project site, gallery, and editor at http://localhost:5274/
Node 18+ is required. The site aliases flint-chart to packages/flint-js/src,
so library edits hot-reload without rebuilding.
flint-chart/
├── packages/
│ ├── flint-js/ npm package `flint-chart` (TypeScript)
│ │ └── src/
│ │ ├── core/ semantics, themes, layout, decisions, shared types
│ │ ├── chart-types/ shared chart definitions and template metadata
│ │ ├── interactive/ interaction presets and runtime
│ │ ├── react/ the `<FlintChart>` React component
│ │ ├── vegalite/ Vega-Lite backend
│ │ ├── echarts/ ECharts backend
│ │ ├── chartjs/ Chart.js backend
│ │ ├── plotly/ Plotly backend
│ │ ├── excel/ native Excel backend
│ │ └── test-data/ fixtures and stress-test generators
│ ├── flint-mcp/ MCP server `flint-chart-mcp`, MCP App UI, and tests
│ └── flint-py/ Python port preview
├── site/ Vite + React project site, gallery, editor, and docs
├── agent-skills/ chart, theme, and interaction authoring skills for agents
├── docs/ user, API, backend, and architecture documentation
└── design-docs/ design proposals and implementation research
This project has adopted the Microsoft Open Source Code of Conduct. See SECURITY.md to report vulnerabilities.
Community
Contributors
Trademarks
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos is subject to those third parties' policies.
License
MIT © Microsoft Corporation
Preguntas sobre Flint MCP
¿Cómo agrego Flint MCP a Claude Code?
Ejecuta claude mcp add flint-chart -- npx -y flint-chart-mcp en tu terminal. Añade --scope user para que esté disponible en todos los proyectos.
¿Cómo agrego Flint MCP a Cursor?
Abre ~/.cursor/mcp.json y añade el servidor en mcpServers, usando la configuración de Cursor que se muestra en la sección de instalación de arriba.
¿Puedo personalizar la apariencia de los gráficos?
Sí, puedes elegir entre 14 temas preestablecidos como The Economist o New York Times, o diseñar tus propios temas personalizados usando el Theme Lab.
¿Flint admite gráficos interactivos?
Sí, ofrece 23 presets de interacción y una API de programación para integrar elementos interactivos como brushing y selectores en tus gráficos.