ecosphere-mcp
README.md
# Ecosphere MCP server
[](https://www.npmjs.com/package/ecosphere-mcp)
[](https://github.com/bacon-delight/ecosphere-mcp/actions/workflows/ci.yml)
[](LICENSE)
A [Model Context Protocol](https://modelcontextprotocol.io) server for the **[Ecosphere design system](https://ecosphere.dev)**, a UI component library for **Vue 3** ([`vue-ecosphere`](https://www.npmjs.com/package/vue-ecosphere)) and **React 18/19** ([`react-ecosphere`](https://www.npmjs.com/package/react-ecosphere)). It gives Claude, ChatGPT, Cursor, Copilot, Codex, Gemini and any other MCP client the real API of every component (props, events, slots, `v-model`, React props), the design tokens, the design rules and recipes, setup for each framework, and component-by-component migration from Ant Design.
- **Remote:** `https://mcp.ecosphere.dev/mcp` (Streamable HTTP, no sign-in)
- **Local:** `npx -y ecosphere-mcp` (stdio)
- **Read-only.** No authentication, no data collection, no network calls at request time: every answer comes from the data bundled in the package.
The data is the generated reference of the [Ecosphere skill](https://github.com/bacon-delight/ecosphere-skill), which is rebuilt from every vue-ecosphere and react-ecosphere release; this server is re-released from it automatically.
## Tools
| Tool | What it answers |
| --- | --- |
| `list_components` | Every component by group (Actions, Navigation, Layout, Display, Data display, Charts, Forms, Feedback & overlays), plus composables, guides and markup patterns. |
| `search_components` | The best components for a need in plain words or another kit's vocabulary: "modal with a confirm button", "data grid", "snackbar", "stepper", "side panel". |
| `get_component` | One component's full API for `vue`, `react` or `both`: props with types and defaults, events, slots, `v-model`, the import, the docs page and its markdown version with Vue and React examples. Also `useToast` / `useConfirm` / `useEcoId` and markup patterns. |
| `get_tokens` | Design tokens (CSS custom properties) by category (colour, type, spacing, radius, shadow, motion) or filtered by a query. |
| `get_design_rules` | The rules (Ecosphere only, tokens not raw values, one primary per region, RemixIcon…), content and visual foundations, "which component for what", recipes and the review checklist. |
| `get_setup` | Install and setup for Vue, React/Next.js or plain HTML, theming, and the Vue → React prop mapping. |
| `get_migration_mapping` | Ant Design Vue / Ant Design → Ecosphere (component and prop translations), Ant icons → RemixIcon, and need-based matches for MUI, Vuetify, Element Plus, shadcn/ui and others. |
| `get_types` | TypeScript definitions of the public types props use (`EcoOption`, `EcoTableColumn`, `ChartSeries`…). |
Resources: `ecosphere://components`, `ecosphere://tokens`, `ecosphere://design-guide`, `ecosphere://types`, `ecosphere://composables`, `ecosphere://component/{name}`. Prompt: `build-with-ecosphere`.
## Install
Use the hosted endpoint where the client supports remote servers; use `npx -y ecosphere-mcp` everywhere else (Node.js 20.10 or later).
### Claude Code
```bash
claude mcp add --transport http ecosphere https://mcp.ecosphere.dev/mcp
```
or locally:
```bash
claude mcp add --transport stdio ecosphere -- npx -y ecosphere-mcp
```
For the full Ecosphere workflow in Claude Code, also install the [Ecosphere skill](https://github.com/bacon-delight/ecosphere-skill).
### Claude Desktop and claude.ai
Remote: **Settings → Connectors → Add custom connector**, name `Ecosphere`, URL `https://mcp.ecosphere.dev/mcp`, no authentication.
Local: add to `claude_desktop_config.json` (macOS `~/Library/Application Support/Claude/`, Windows `%APPDATA%\Claude\`):
```json
{
"mcpServers": {
"ecosphere": { "command": "npx", "args": ["-y", "ecosphere-mcp"] }
}
}
```
### ChatGPT
In developer mode: **Plugins → + → Add custom MCP server**, URL `https://mcp.ecosphere.dev/mcp`, authentication **None**.
### Cursor
[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=ecosphere&config=eyJ1cmwiOiJodHRwczovL21jcC5lY29zcGhlcmUuZGV2L21jcCJ9), or add to `~/.cursor/mcp.json` (or `.cursor/mcp.json` in a project):
```json
{
"mcpServers": {
"ecosphere": { "url": "https://mcp.ecosphere.dev/mcp" }
}
}
```
Local: `"ecosphere": { "command": "npx", "args": ["-y", "ecosphere-mcp"] }`.
### VS Code (GitHub Copilot)
```bash
code --add-mcp '{"name":"ecosphere","type":"http","url":"https://mcp.ecosphere.dev/mcp"}'
```
or `.vscode/mcp.json`:
```json
{
"servers": {
"ecosphere": { "type": "http", "url": "https://mcp.ecosphere.dev/mcp" }
}
}
```
Local: `"ecosphere": { "type": "stdio", "command": "npx", "args": ["-y", "ecosphere-mcp"] }`.
### OpenAI Codex
```bash
codex mcp add ecosphere -- npx -y ecosphere-mcp
```
or in `~/.codex/config.toml`:
```toml
[mcp_servers.ecosphere]
url = "https://mcp.ecosphere.dev/mcp"
```
### Gemini CLI
```bash
gemini mcp add --transport http ecosphere https://mcp.ecosphere.dev/mcp
```
or in `settings.json`:
```json
{
"mcpServers": {
"ecosphere": { "httpUrl": "https://mcp.ecosphere.dev/mcp" }
}
}
```
### Any other client
Remote: Streamable HTTP at `https://mcp.ecosphere.dev/mcp`, stateless, no auth. Local: run `npx -y ecosphere-mcp` over stdio.
## Example prompts
- "Build a students table with search, filter chips, pagination and a delete confirmation using Ecosphere in React."
- "Which Ecosphere component should I use for a side panel with a form? Show its Vue props."
- "Migrate this Ant Design Vue form to Ecosphere."
- "What spacing and radius tokens does Ecosphere have?"
## Run it yourself
```bash
npx -y ecosphere-mcp --http --port 3333 # http://127.0.0.1:3333/mcp
npx -y @modelcontextprotocol/inspector npx -y ecosphere-mcp # try the tools in the MCP Inspector
```
`ecosphere-mcp/http` exports `handleMcpRequest(req, res)`, a stateless Node handler you can mount in your own server.
## Development
```bash
npm ci
npm run build # data/source → data/index.json, then TypeScript → dist/
npm test
npm run fetch-data # pull the latest ecosphere-skill release into data/source (never edit it by hand)
```
`data/source/` is copied verbatim from the `ecosphere-skill.zip` and `ecosphere-migrate-skill.zip` assets of an [ecosphere-skill release](https://github.com/bacon-delight/ecosphere-skill/releases) (recorded in `data/source.json`); CI checks it still matches. `api/mcp.js` is the Vercel Function behind `mcp.ecosphere.dev`.
**Releases** run from [`.github/workflows/release.yml`](.github/workflows/release.yml), never on a schedule. When the skill releases new references, its sync workflow sends a `repository_dispatch` here; the workflow pulls the data, bumps the patch version, tags, publishes to npm (trusted publishing) and to the [MCP Registry](https://registry.modelcontextprotocol.io) as `io.github.bacon-delight/ecosphere`, and the push to `main` redeploys the hosted endpoint. "Run workflow" does the same by hand.
## Privacy
The server answers from bundled, public documentation. It has no accounts, stores nothing about requests, sets no cookies and calls no other service.
## Links
- Docs: [ecosphere.dev](https://ecosphere.dev) (also [llms.txt](https://ecosphere.dev/llms.txt))
- Vue: [bacon-delight/vue-ecosphere](https://github.com/bacon-delight/vue-ecosphere) · React: [bacon-delight/react-ecosphere](https://github.com/bacon-delight/react-ecosphere)
- Agent skill and plugin: [bacon-delight/ecosphere-skill](https://github.com/bacon-delight/ecosphere-skill)
MIT © Dipanjan De
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues