Dart MCP server template

Dart MCP server template

dart-mcp-server-template•byjhgaylor

A template repository for building Dart MCP servers, providing a core server implementation, multiple transport entrypoints, and Docker configuration.

License: MIT License•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Provides a core MCP server implementation in lib/src/server.dart where users add custom logic.
  • •Includes executable entrypoints for starting the server over standard I/O, Server-Sent Events, and HTTP streaming transports.
  • •Integrates with the mcp_dart package and supports connecting a Dart client and server entirely in memory.
  • •Includes a Dockerfile for containerizing the server.

BEST FOR

  • •Dart developers who want a starting scaffold for a new MCP server project.
  • •Developers needing a choice of stdio, SSE, or streamable HTTP transport for their MCP server.
  • •Teams wanting containerized MCP server deployment via Docker.

ABOUT DART-MCP-SERVER-TEMPLATE

Dart MCP server template is cataloged as an MCP server attributed to jhgaylor. A template repository for building Dart MCP servers, providing a core server implementation, multiple transport entrypoints, and Docker configuration. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Dart MCP server template are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does generated code need to use the MIT License?

No; the template does not impose a specific license on generated applications.

Where should custom server logic go?

Custom code is intended to go in lib/src/server.dart, which sets up the basic MCP server.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 2e9b369b83d4 · 采集于 2026-11-13 12:06:03 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Dart MCP Server Template

A template repository for creating Dart server applications compatible with MCP (Model Control Protocol). This template provides a starting point with Docker configuration, server implementations, and basic project structure.

About This Template

This template includes:

  • A streamable HTTP server implementation for MCP
  • Docker configuration for easy deployment
  • Basic project structure with lib, bin, and test directories
  • Integration with the mcp_dart package

Project Structure and Features

Server Implementation

  • bin/ - Contains executable Dart files to start the server via different transport methods:

    • dart bin/stdio_server.dart: Start server with standard I/O transport.
    • dart bin/sse_server.dart: Start server with Server-Sent Events transport.
    • dart bin/streamable_http_server.dart: Start server with HTTP streaming transport.
    • All these executables use the core server implementation defined in lib/src/server.dart.
  • lib/src/server.dart - Sets up a basic MCP server. This is where the bulk of your custom code will go.

In-Memory Stream Transport

You can connect a Dart client and server entirely in memory using the IOStreamTransport. Here is an end-to-end example.

Using This Template

Clone this repository and manually update the package name:

git clone https://github.com/jhgaylor/dart-mcp-server-template.git my_new_mcp_server
cd my_new_mcp_server

# Update the package name throughout the codebase
find . -type f -name "*.dart" -o -name "pubspec.yaml" | xargs sed -i 's/dart_mcp_server_template/my_new_mcp_server/g'
# Update the package name in the repository URL
find . -type f -name "*.md" -o -name "Dockerfile" | xargs sed -i 's/dart-mcp-server-template/my-new-mcp-server/g'
# Rename the files
find . -type f -name "*dart_mcp_server_template*" | while read file; do mv "$file" "${file//dart_mcp_server_template/my_new_mcp_server}"; done

# Remove the .git directory to start fresh
rm -rf .git

# Initialize a new git repository
git init

Then update the package name in pubspec.yaml and throughout the codebase.

Getting Started

After creating your project from this template:

  1. Update the pubspec.yaml with your project details
  2. Modify the configuration in lib/src/config.dart as needed
  3. Implement your custom server logic
  4. Run the server using one of the provided entrypoints:
    • dart bin/stdio_server.dart (Standard I/O)
    • dart bin/sse_server.dart (Server-Sent Events)
    • dart bin/streamable_http_server.dart (HTTP streaming)

Docker Deployment

This template includes a Dockerfile for easy containerization:

# Build the Docker image
docker build -t my-mcp-server .

# Run the container
docker run -p 3000:3000 my-mcp-server

License

This template is released under the MIT License. When you generate your own application from this template, you are free to choose any license for your project; the template does not impose a specific license on your generated code.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Dart MCP server template from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/dart-mcp-server-template)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools