Elixir
БесплатноНе проверенAn example of how to implement an MCP server using Elixir and SSE transport
Описание
An example of how to implement an MCP server using Elixir and SSE transport
README
An Elixir implementation of the Model Context Protocol (MCP) server using Elixir with Bandit and Plug.
The Model Context Protocol (MCP) is an open protocol that enables AI models to securely interact with local and remote resources through standardized server implementations. This project is a basic example of an MCP server using SSE (Server-Sent Events) as the transport protocol. It is based off the example at https://modelcontextprotocol.io/quickstart/server
Prerequisites
Elixir 1.18 or higher
Erlang/OTP 27 or higher
The weather API key can be set through the
WEATHER_API_KEYenvironment variable. The default service is using the free tier of https://www.weatherapi.com/.
Getting Started
Install dependencies:
mix deps.getStart the server:
WEATHER_API_KEY="1234567890abcdef" mix run --no-haltThe server will be available at:
- SSE endpoint: http://localhost:4000/sse
- Message endpoint: http://localhost:4000/message
Available Tools
list_files: List files in a directoryecho: Echo a message backget_weather: Get weather information
Testing with MCP Client
Install the NXP Inspector client and follow the instructions to connect to the server.
Make sure to use SSE (Server-Sent Events) as the transport protocol, then you should be able to list available tools and call them. Also to ping/keepalive the connection, you can use the ping tool.
Adding Custom Tools
To add custom tools, update the handle_initialize/2 function to include your tool definitions and implement corresponding handle_call_tool/3 clauses.
Установка Elixir
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/epinault/elixir_mcp_serverFAQ
Elixir MCP бесплатный?
Да, Elixir MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Elixir?
Нет, Elixir работает без API-ключей и переменных окружения.
Elixir — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Elixir в Claude Desktop, Claude Code или Cursor?
Открой Elixir на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Elixir with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
