@spectrum-charts/mcp
v1.32.0
Published
MCP Server for React Spectrum Charts documentation
Readme
React Spectrum Charts MCP Server
A Model Context Protocol (MCP) server that exposes React Spectrum Charts documentation to AI assistants like Claude and Cursor.
Tools
| Tool | Description |
| --------------- | ------------------------------------------------------ |
| list_rsc_docs | Lists all documentation pages with IDs and titles |
| read_rsc_doc | Returns full markdown content for a documentation page |
Setup
Add the server to your AI tool's MCP configuration. The tool will automatically start and manage the server.
Cursor
Add to your project's .cursor/mcp.json:
{
"mcpServers": {
"react-spectrum-charts": {
"command": "yarn",
"args": ["dlx", "@spectrum-charts/mcp"]
}
}
}Then restart Cursor.
Claude Desktop
Add to your config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"react-spectrum-charts": {
"command": "yarn",
"args": ["dlx", "@spectrum-charts/mcp"]
}
}
}Then restart Claude Desktop.
Note: You can also use
npxorpnpm dlxinstead ofyarn dlx.
Usage
Once configured, ask your AI assistant about React Spectrum Charts:
- "What chart components are available in React Spectrum Charts?"
- "Show me how to create a bar chart"
- "What props does the Line component accept?"
The AI will automatically use the MCP tools to fetch documentation.
Development
Build from source
cd packages/mcp
yarn buildRun tests
yarn testTest with MCP Inspector
yarn build
npx @modelcontextprotocol/inspector node dist/index.jsLocal development config
For testing local changes, point to the built file:
{
"mcpServers": {
"react-spectrum-charts": {
"command": "node",
"args": ["/path/to/react-spectrum-charts/packages/mcp/dist/index.js"]
}
}
}- MCP Server Documentation - Full setup guide
