mcp: A Haskell implementation of the Model Context Protocol (MCP)

[ library, mit, network, program ] [ Propose Tags ] [ Report a vulnerability ]

This library provides a complete implementation of the Model Context Protocol (MCP) for Haskell. MCP is a protocol that enables seamless communication between AI models and external tools, resources, and services. This implementation includes support for resources, tools, prompts, and all standard MCP message types. It provides both a server framework and type definitions for building MCP-compliant applications. . Features dual transport support: . * StdIO transport for process-based clients (e.g., Claude Desktop) * HTTP transport following the official MCP specification for web-based integration, and supports OAuth authentication. . Both transports use the same MCPServer typeclass, allowing seamless switching between communication methods while maintaining identical server logic.

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.1.1.0, 0.2.0.0, 0.2.0.1
Change log CHANGELOG.md
Dependencies aeson (>=2.1 && <2.3), async (>=2.2 && <2.3), base (>=4.18.2.1 && <4.19), base64-bytestring (>=1.2 && <1.3), bytestring (>=0.11 && <0.12), containers (>=0.6 && <0.7), cryptonite (>=0.30 && <0.31), http-conduit (>=2.3 && <2.4), http-types (>=0.12 && <0.13), jose (>=0.10 && <0.12), mcp, memory (>=0.18 && <0.19), mtl (>=2.3 && <2.4), optparse-applicative (>=0.17 && <0.19), random (>=1.2 && <1.3), scientific (>=0.3 && <0.4), servant (>=0.19 && <0.21), servant-auth (>=0.4 && <0.5), servant-auth-server (>=0.4 && <0.5), servant-server (>=0.19 && <0.21), stm (>=2.5 && <2.6), text (>=2.0 && <2.1), time (>=1.12 && <1.13), transformers (>=0.6 && <0.7), unordered-containers (>=0.2 && <0.3), uuid (>=1.3 && <1.4), wai (>=3.2 && <3.3), wai-extra (>=3.1 && <3.2), warp (>=3.3 && <3.4) [details]
License MIT
Author Matthias Pall Gissurarson
Maintainer mpg@mpg.is
Category Network
Home page https://github.com/Tritlo/mcp
Source repo head: git clone https://github.com/Tritlo/mcp.git
Uploaded by tritlo at 2025-06-18T20:15:37Z
Distributions
Executables mcp-http, mcp
Downloads 13 total (13 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]