MCP Server
Connect your AI tools to EletroDS documentation with a native MCP server.
About MCP Servers
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.
How MCP Servers Work
When an MCP server is connected to an AI tool, the LLM can decide to use your documentation tools during response generation:
- The LLM can proactively search your documentation while generating a response, not just when explicitly asked.
- The LLM determines when to use tools based on the context of the conversation and the relevance of your documentation.
- Each tool call happens during the generation process, allowing the LLM to incorporate real-time information from your documentation into its response.
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.
Accessing Your MCP Server
The MCP server is automatically available at the /mcp path of the documentation URL.
https://eletro.design/mcp
http://localhost:3000/mcp
Built-in Tools
EletroDS provides two tools out of the box that allow any LLM to discover and read our documentation:
list-pages
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 |
get-page
Retrieves the full markdown content of a specific documentation page.
| Parameter | Type | Description |
|---|---|---|
| path | string (required) | The page path (e.g., /getting-started/installation) |
Setup
The MCP server uses HTTP transport and can be installed in different AI assistants.
Cursor
Install in CursorOr 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.Claude Code
Add the server using the CLI command:
claude mcp add --transport http eletrods https://eletro.design/mcp
Visual Studio Code
Install in VS CodeEnsure 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"
}
}
}
Windsurf
- Open Windsurf and navigate to Settings > Windsurf Settings > Cascade
- Click the Manage MCPs button, then select the View raw config option
- Add the following configuration:
{
"mcpServers": {
"eletrods": {
"type": "http",
"url": "https://eletro.design/mcp"
}
}
}
Zed
- Open Zed and go to Settings > Open Settings
- Navigate to the JSON settings file
- Add the following context server configuration:
{
"context_servers": {
"eletrods": {
"source": "custom",
"command": "npx",
"args": ["mcp-remote", "https://eletro.design/mcp"],
"env": {}
}
}
}
Usage Example
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.Troubleshooting
Connection Issues
If you're having trouble connecting to the MCP server:
- Verify the URL - Make sure you're using the correct URL (
https://eletro.design/mcpfor production) - Check your network - Ensure you have internet access and can reach the documentation site
- Restart your IDE - Some IDE's require a restart after adding MCP server configurations
Local Development
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"
}
}
}