mcp: A Haskell implementation of the Model Context Protocol (MCP)
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
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 supports the latest MCP protocol version (2025-06-18) with full compatibility 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.
Properties
Versions | 0.1.0.0, 0.1.1.0, 0.2.0.0, 0.2.0.1, 0.3.0.0 |
---|---|
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-18T22:13:22Z |
Modules
[Index] [Quick Jump]
Downloads
- mcp-0.3.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees