---
title: "Building a MCP Server in Elixir"
url: https://daily.dev/posts/building-a-mcp-server-in-elixir-kgjyn3na2
source_url: https://hashrocket.com/blog/posts/building-a-mcp-server-in-elixir
type: article
source: "Hashrocket"
published: 2025-11-25T14:51:44.420Z
updated: 2025-11-25T14:52:06.386Z
tags: ["ai", "authentication", "elixir"]
reading_time: 12
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Building a MCP Server in Elixir

**[Hashrocket](https://daily.dev/sources/hashrocket)** · 12 min read · 0 upvotes · 0 comments

## Summary

A detailed walkthrough of building a Model Context Protocol (MCP) server in Elixir using the Anubis library. The implementation enables AI tools like Claude and Cursor to create TIL (Today I Learned) posts directly from chat interactions. Covers server setup, tool and resource definitions, authentication challenges with shared server instances, token generation with Phoenix.Token, and the importance of adding moderation workflows since AI-generated content requires manual review before publishing.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://hashrocket.com/blog/posts/building-a-mcp-server-in-elixir>

---

Tags: [#ai](https://daily.dev/tags/ai), [#authentication](https://daily.dev/tags/authentication), [#elixir](https://daily.dev/tags/elixir)

[View this post on daily.dev](https://daily.dev/posts/building-a-mcp-server-in-elixir-kgjyn3na2)
