v1.0 · 32 packages on pub.dev

The Model Context Protocol stack for Dart and Flutter.

A composable family of packages — bundle schema, MCP client/server, transport-agnostic IO, knowledge subsystem, and a Material 3 UI runtime. Each ships independently. None require ceremony.

Packages
32
Layers
7
Transports
8
License
MIT
main.dart
client server ui
1import 'package:mcp_client/mcp_client.dart';
2import 'package:flutter_mcp_ui_runtime/runtime.dart';
3
4// Connect through any supported transport.
5final client = await McpClient.connect(
6  transport: StdioTransport(),
7);
8
9// Server publishes tools + a UI definition.
10final ui = await client.fetchUi();
11
12// Render. Tool calls flow back from UI actions.
13runApp(McpUiRuntime(
14  client: client,
15  definition: ui,
16));
Architecture

Seven layers. Lower never depends on higher.

Most packages depend only on mcp_bundle. There are no circular dependencies — pick the parts you need and compose without ceremony.

Application
orchestration
IO
8 transports + core
Protocol
client · server · llm · gateway
Foundation
schema · ports · expression
Packages

32 packages. Each ships on its own.

Pub.dev publication is independent — depend on what you need. Most depend only on mcp_bundle.

Composition

Compose without ceremony.

The packages do not require each other to be used together. These are common compositions — start small, grow as you need.

Minimal client

mcp_client alone is enough to talk to any MCP server. No UI, no bundle — just the wire.

mcp_client

Server with UI

Describe tools and a Material 3 UI definition; clients render it through the runtime.

mcp_server mcp_bundle flutter_mcp_ui_runtime

Knowledge stack

Facts, skills, profile, ops, and philosophy behind one facade — for AI personas with memory and ethos.

mcp_knowledge mcp_fact_graph mcp_skill mcp_profile mcp_knowledge_ops mcp_philosophy

Device control

Bring physical and network devices under one contract — eight transports out of the box, orchestrated declaratively.

mcp_io mcp_io_serial mcp_io_modbus mcp_flow_runtime

Multi-node deployment

Route between MCP servers and clients with namespace separation, session, audit, and policy.

mcp_gateway mcp_client mcp_server

Application host

Connection lifecycle, sessions, and bundle install on top of client, bundle, and the UI runtime.

appplayer_core mcp_client mcp_bundle flutter_mcp_ui_runtime
Quickstart

From zero to your first MCP UI.

Three steps. Less than five minutes if pub.dev cooperates.

Build with the protocol of context.

Each package is on pub.dev. The source is on GitHub. Issues, PRs, and questions welcome.

GitHub pub.dev