Connect your AI tools to EletroDS documentation with a native MCP server.
The Model Context Protocol (MCP) is an open protocol that creates standardized connections between AI applications and external services, like documentation.
EletroDS includes a built-in MCP server, preparing your content for the broader AI ecosystem where any MCP client (like Claude, Cursor, VS Code, and others) can connect to our documentation.
When an MCP server is connected to an AI tool, the LLM can decide to use your documentation tools during response generation:
For example, if a user asks about how to use the MeButton component and the LLM determines that EletroDS documentation is relevant, it can search our docs and include accurate usage examples in the response without the user explicitly asking about our documentation.
The MCP server is automatically available at the /mcp path of the documentation URL.
https://eletro.design/mcp
http://localhost:3000/mcp
EletroDS provides two tools out of the box that allow any LLM to discover and read our documentation:
Lists all documentation pages with their titles, paths, and descriptions. AI assistants should call this first to discover available content.
| Parameter | Type | Description |
|---|---|---|
| locale | string (optional) | Filter pages by locale |
Retrieves the full markdown content of a specific documentation page.
| Parameter | Type | Description |
|---|---|---|
| path | string (required) | The page path (e.g., /getting-started/installation) |
The MCP server uses HTTP transport and can be installed in different AI assistants.
Or manually create/update the .cursor/mcp.json file in your project root:
{
"mcpServers": {
"eletrods": {
"type": "http",
"url": "https://eletro.design/mcp"
}
}
}
http://localhost:3000/mcp instead.Add the server using the CLI command:
claude mcp add --transport http eletrods https://eletro.design/mcp
Ensure you have GitHub Copilot and GitHub Copilot Chat extensions installed.
Or manually create/update the .vscode/mcp.json file:
{
"servers": {
"eletrods": {
"type": "http",
"url": "https://eletro.design/mcp"
}
}
}
{
"mcpServers": {
"eletrods": {
"type": "http",
"url": "https://eletro.design/mcp"
}
}
}
{
"context_servers": {
"eletrods": {
"source": "custom",
"command": "npx",
"args": ["mcp-remote", "https://eletro.design/mcp"],
"env": {}
}
}
}
Once connected, you can ask your AI assistant questions about EletroDS and it will automatically search our documentation:
list-pages to discover available content, then get-page to retrieve the button component documentation, and provide you with accurate usage examples.If you're having trouble connecting to the MCP server:
https://eletro.design/mcp for production)For local development, make sure the documentation server is running:
cd docs
pnpm dev
Then update your MCP configuration to use the local URL:
{
"mcpServers": {
"eletrods-local": {
"type": "http",
"url": "http://localhost:3000/mcp"
}
}
}