simple_dart_mcp_server
A very simple Model Context Protocol server implementation in Dart
claude mcp add --transport stdio nmfisher-simple_dart_mcp_server dart run server.dart
How to use
This MCP server is a lightweight Dart implementation of the Model Context Protocol (MCP) and supports both stdio and WebSocket transports. It enables clients to negotiate context, publish updates, and receive model context changes via MCP messages. To use it, run the server and connect a client over stdio or WebSocket depending on your environment. The server exposes the standard MCP message flow (initialize, update, and terminate) and will relay context updates between clients or between a client and the MCP host. With Dart, you can integrate this server into Dart-based tooling or run it as a standalone process in a broader data-pipeline setup. The transport-agnostic design makes it straightforward to switch between local testing via stdio and remote operation over WebSocket by configuring the appropriate transport layer in the client.
How to install
Prerequisites:
- Dart SDK (https://dart.dev/get-dstarted)
- Access to the project repository (git)
Installation steps:
-
Clone the repository: git clone https://github.com/your-org/nmfisher-simple_dart_mcp_server.git cd nmfisher-simple_dart_mcp_server
-
Ensure Dart is installed and available in your PATH: dart --version
-
Install dependencies (if the project uses pubspec.yaml): dart pub get
-
Run the server locally (as a development server): dart run server.dart
-
If you prefer a specific transport, configure the server accordingly (see additional notes).
Additional notes
Notes and tips:
- The server supports both stdio and WebSocket transports. Ensure your client selects the correct transport and connects to the appropriate endpoint.
- If you modify the server, run a quick lint or analysis pass (dart analyze) to catch common mistakes.
- For debugging, you can run with verbose logging by configuring the log level in the environment or via code, depending on how logging is implemented in the server.
- If you need to run inside a container, you can adapt the Flutter/Dart image or a plain Dart image and expose the port used for WebSocket connections.
- If you encounter dependency or package resolution issues, run: dart pub get, then restart the server.
- There is no npm package for this server (Node.js package manager not used here), so npm_package is null.
Related MCP Servers
chatmcp
ChatMCP is an AI chat client implementing the Model Context Protocol (MCP).
mcp_flutter
MCP server and MCP Toolkit for Flutter and Dart VM - supports dynamic tooling
dart
Dart AI Model Context Protocol (MCP) server
cbn_mcp
A Model Context Protocol (MCP) server for accessing Central Bank of Nigeria (CBN) data and circulars. Connect this server to Cursor, Claude Desktop, or any MCP-compatible application to access CBN regulatory information directly in your AI conversations. 🚀
mcp_server_dart
A developer-friendly MCP (Model Context Protocol) framework for Dart with annotations and code generation. Build MCP servers as easily as annotating methods with @MCPTool, @MCPResource, or @MCPPrompt - similar to how json_serializable or freezed works.
mcp_server
MCP server from app-appplayer/mcp_server