drio
Open app

Hex MCP Server

Source

MCP Server for Hex Package Versions

Catalog onlyCatalog onlySTDIO

Overview

Hex MCP Server is a Model Context Protocol (MCP) server that provides real-time Hex package version information to AI tools like Cursor, ensuring that AI-assisted development uses the correct and most up-to-date package versions for Elixir projects.

To use Hex MCP Server, integrate it with Cursor by adding the server URL to your Cursor configuration. For local development, set up the Phoenix server and access it via your browser.

  • Real-time Hex package version information - Integration with AI tools like Cursor - Standardized context provision for Large Language Models (LLMs)
  1. Ensuring accurate package version suggestions in Elixir projects.
  2. Assisting AI tools in dependency management.
  3. Providing context to LLMs for better AI-assisted development.

Add to your AI client

Use these steps to connect Hex MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "hex-mcp-9elements": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-hex-mcp-9elements"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "hex-mcp-9elements": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-hex-mcp-9elements"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "hex-mcp-9elements": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-hex-mcp-9elements"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "hex-mcp-9elements": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-hex-mcp-9elements"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "hex-mcp-9elements": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-hex-mcp-9elements"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "hex-mcp-9elements": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-hex-mcp-9elements"
      ]
    }
  }
}

FAQ

Is Hex MCP Server affiliated with hex.pm?

No, Hex MCP Server uses the API provided by hex.pm but is not affiliated or endorsed by them.

How do I set up Hex MCP Server locally?

Run `mix setup`, then start the Phoenix server with `mix phx.server` and visit `localhost:4000` in your browser.

What is the Model Context Protocol (MCP)?

MCP is an open protocol that standardizes how applications provide context to Large Language Models (LLMs). For more information, visit the official documentation.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1226,"uuid":"0d22cbc1-2a70-4929-846a-8ba4bbd1a753","name":"hex-mcp","title":"Hex MCP Server","description":"MCP Server for Hex Package Versions","avatar_url":"https://avatars.githubusercontent.com/u/114167?v=4","created_at":"2025-02-20T13:55:44.583+00:00","updated_at":"2025-02-23T07:20:28.593+00:00","status":"created","author_name":"9elements","author_avatar_url":"https://avatars.githubusercontent.com/u/114167?v=4","tags":"hex-mcp,mcp-server,elixir-development","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/9elements/hex-mcp","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]