Unified MCP Client Library for Elixir
@ramonlimaramos
🌐 Mcpixir is the open source way to connect any LLM to any MCP server and build custom agents that have tool access, without using closed source or application clients.
Overview
What is Unified MCP Client Library for Elixir?
Mcpixir is an open-source Elixir library that lets developers connect any LLM supporting tool calling to any MCP server, enabling custom agents with tool access for web browsing, file operations, and more. It is designed for Elixir developers building agent-based applications.
How to use Unified MCP Client Library for Elixir?
Add mcpixir to your mix.exs dependencies, configure LLM provider API keys (e.g., OPENAI_API_KEY), then create an MCP client, configure your LLM, create an agent, and run queries—all in about six lines of code. Use Mix tasks like mix mcpixir.chat to quickly test examples.
Key features of Unified MCP Client Library for Elixir
- Create an MCP agent with as few as 6 lines of code
- Works with any LLM supporting tool calling
- Direct HTTP connections to remote MCP servers
- Agents dynamically select the best MCP server for a task
- Use multiple MCP servers simultaneously in one agent
- Restrict dangerous tools like file system or network access
Use cases of Unified MCP Client Library for Elixir
- Web browsing and search via Playwright MCP server
- Search and book accommodations through Airbnb MCP server
- Create 3D models with Blender MCP server
- Combine multiple MCP servers (e.g., Airbnb + Playwright) in a single agent workflow
FAQ from Unified MCP Client Library for Elixir
What LLM providers are supported?
Mcpixir works with any LLM that supports tool calling, including OpenAI, Anthropic, and Groq. You must configure the corresponding API keys.
Can I use multiple MCP servers at the same time?
Yes. Mcpixir supports multi-server configuration. An agent can access tools from all configured servers, and dynamic server selection can be enabled to choose the best server per task.
How do I restrict potentially dangerous tools?
You can provide a list of disallowed tool names when creating the agent (e.g., disallowed_tools: ["file_system", "network"]) to control what the agent can use.
Does Mcpixir support HTTP/SSE connections?
Yes. Mcpixir can connect to MCP servers via HTTP using SSE endpoints, configured via the url field in the server configuration.
What are the runtime requirements?
Elixir 1.15 or later, and API keys for the chosen LLM provider. The library is available on Hex.pm.