# Writing MCP servers in Clojure with Ring and Malli

DevFeed: [Writing MCP servers in Clojure with Ring and Malli](<https://devfeed.tech/articles/writing-mcp-servers-in-clojure-with-ring-and-malli-29189.md>)

Original publisher: [Read original article](<https://www.latacora.com/blog/2025/11/10/mcp-sdk/>)

Published: 2025-11-10T15:00:00Z

Content type: tutorial

Language: en

Sources: [Latacora](<https://devfeed.tech/sources/latacora.md>)

Topics: [MCP Server](<https://devfeed.tech/topics/mcp-server.md>), [Clojure](<https://devfeed.tech/topics/clojure.md>), [Model Context Protocol](<https://devfeed.tech/topics/model-context-protocol.md>), [Databases](<https://devfeed.tech/topics/databases.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>)

Tags: [clojure](<https://devfeed.tech/tags/clojure.md>), [databases](<https://devfeed.tech/tags/databases.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [mcp-server](<https://devfeed.tech/tags/mcp-server.md>), [model-context-protocol](<https://devfeed.tech/tags/model-context-protocol.md>)

## AI overview

This tutorial explains how Latacora built a compliant Model Context Protocol server for Clojure applications using Ring and the official Model Context Protocol Java SDK. It presents an open-source Clojure library for exposing Datomic database queries to LLM agents through MCP.

## Source excerpt

Introduction # Large language models, agents, and Model Context Protocol (MCP) are impossible to escape in today's tech climate. At Latacora, we take a thoughtful and pragmatic approach towards new technologies like these. Are they going to solve all the world's problems? No. Is it important that we understand them and be able to build software that integrates into emerging ecosystems? Yes! Internally we've built a MCP server to query our Datomic databases using natural language, but now we're open sourcing the underlying Clojure library so others can easily build robust MCP servers for the emerging LLM agent ecosystem too.