I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

elixir_mcp_server
Un exemple de la façon d'implémenter un serveur MCP en utilisant le transport Elixir et SSE
1
Github Watches
1
Github Forks
3
Github Stars
Elixir MCP Server
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_KEY
environment variable. The default service is using the free tier of https://www.weatherapi.com/.
Getting Started
-
Install dependencies:
mix deps.get
-
Start the server:
WEATHER_API_KEY="1234567890abcdef" mix run --no-halt
-
The 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 directory -
echo
: Echo a message back -
get_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.
相关推荐
I find academic articles and books for research and literature reviews.
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
Confidential guide on numerology and astrology, based of GG33 Public information
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Advanced software engineer GPT that excels through nailing the basics.
Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.
L'application tout-en-un desktop et Docker AI avec chiffon intégré, agents AI, constructeur d'agent sans code, compatibilité MCP, etc.
Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX
Plateforme d'automatisation de workflow à code équitable avec des capacités d'IA natives. Combinez le bâtiment visuel avec du code personnalisé, de l'auto-hôte ou du cloud, 400+ intégrations.
🧑🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.
Reviews

user_47Ln1x7I
I am thoroughly impressed with CAD-MCP Server by daobataotie. This tool greatly simplifies managing CAD models with its robust control protocol. The performance and reliability are outstanding, making it an essential asset for any CAD enthusiast. Highly recommend checking it out at https://mcp.so/server/CAD-MCP/daobataotie!