MCP.so
Sign In
Servers

MCP Server SDK

@peter-jerry-ye

Overview

What is MCP Server SDK?

MCP Server SDK is a MoonBit implementation of the Model Context Protocol (MCP) that supports Wasm Component Model and Native backends. It enables developers to build running MCP servers that provide tools, prompts, and other capabilities to AI models.

How to use MCP Server SDK?

Refer to the ./example directory for a simple weather MCP server in Wasm, and ./example-c for a simple server using the native backend. The SDK currently supports Stdio transport and implements MCP version 2024-11-05.

Key features of MCP Server SDK

  • MoonBit implementation of Model Context Protocol
  • Supports Wasm Component Model and Native backends
  • Server capabilities: Tools and Prompts
  • Client capability: List roots
  • Stdio transport support

Use cases of MCP Server SDK

  • Build a custom MCP server that exposes tools to AI models
  • Create a prompt-based server for AI assistants
  • Develop a Wasm-compiled MCP server for sandboxed environments

FAQ from MCP Server SDK

What dependencies does MCP Server SDK require?

It requires the MoonBit runtime and an implementation of peter-jerry-ye/async/stream for the selected backend.

What transports are supported?

Currently only Stdio transport is supported.

What MCP version does it implement?

It implements MCP version 2024-11-05.

What server capabilities are available?

The SDK provides Tools and Prompts capabilities. It can also call client capabilities like List roots if the client provides them.

More from Developer Tools