Serverpod is a next-generation app and web server, explicitly built for the Flutter and Dart ecosystem.

Serverpod is the ultimate app-stack for agentic coding. It is a complete, open-source solution for your app, backend, website, and database, all using Flutter and Dart. You write your server in the same language as your app. Serverpod generates the type-safe client, the database schema, and the migrations. One command runs your whole stack locally with hot reload, and one more publishes it to the cloud.
Get started · Documentation · Serverpod Cloud · Discord
serverpod start, runs the server, the database, and your Flutter app, and watches all of it. Change an endpoint or a model, and Serverpod regenerates the code and reloads both server and app.dart test. You call your endpoints directly, with no HTTP mocking.More than a thousand new projects are created with Serverpod every month, and it's used in production by startups, app agencies, banks, and medical companies.
Serverpod is designed for building apps with an AI coding agent. When you create a project, pick your agent and Serverpod sets it up for you. Claude Code, Cursor, VS Code, Codex, Antigravity, and OpenCode are supported out of the box.
serverpod mcp-server, your agent can read server and Flutter app logs, hot reload the server and the app, and create and apply database migrations. It makes a change, sees it running, and reads the logs when something breaks, without you copying output back and forth.serverpod runner, each agent runs its own server and database in its own Git worktree, so agents don't get in each other's way. Run serverpod start in any worktree to see what its agent sees.You need Flutter 3.44.4 or later.
Install the Serverpod CLI:
dart install serverpod_cli
Create a project with a server, a client, and a Flutter app. The command asks which editor or agent you use:
serverpod quickstart my_project
Move into the project folder:
cd my_project
Start the full stack with hot reload:
serverpod start
The serverpod start command starts the database, runs your server, and opens your Flutter app.
Follow the quickstart guide for a full walkthrough.
[!NOTE] Upgrading an existing project? Start with the upgrade guides.
Describe your data once, in YAML. Serverpod generates a Dart class from it for both your server and your app. The table key maps it to a database table.
# my_project_server/lib/src/notes/note.spy.yaml
class: Note
table: note
fields:
text: String
Then press M in the serverpod start terminal to create the table.
An endpoint's methods are what your app calls. The Note class and its type-safe db API are generated from the model above.
// my_project_server/lib/src/notes/notes_endpoint.dart
class NotesEndpoint extends Endpoint {
Future<Note> add(Session session, Note note) =>
Note.db.insertRow(session, note);
Future<List<Note>> list(Session session) =>
Note.db.find(session, orderBy: (t) => t.id);
}
Serverpod generates a client that turns each endpoint method into a regular Dart call. There's no REST layer to write or keep in sync.
final notes = await client.notes.list();
The generated test tools run your endpoints against a real server and database. Each test's changes are rolled back when it finishes.
withServerpod('Given Notes endpoint', (sessionBuilder, endpoints) {
test('when adding a note then it is listed', () async {
await endpoints.notes.add(sessionBuilder, Note(text: 'Hello'));
final notes = await endpoints.notes.list(sessionBuilder);
expect(notes.single.text, 'Hello');
});
});
Run your tests with dart test from the my_project_server folder.
serverpod
Embedded Postgres never starts again once postgresql.conf holds NUL bytes (syntax error … line 1, near token "")
https://github.com/serverpod/serverpod/issues/6081
Labels: bug
Use prebuilt Serverpod CLI bundles for installation and upgrades
https://github.com/serverpod/serverpod/issues/6077
Labels: None
Legacy serverpod_auth Google sign-in: authenticateWithIdToken never checks email_verified
https://github.com/serverpod/serverpod/issues/6058
Labels: None
Insights fetchFile: directory whitelist is a naive prefix match — allows ../ traversal
https://github.com/serverpod/serverpod/issues/6057
Labels: None
serverpod_auth_idp_server: Apple verifyIdentityToken uses nonce: null — identity token replayable for its full exp window
https://github.com/serverpod/serverpod/issues/6056
Labels: None
Serverpod is built by the community for the community. We welcome contributions from everyone, regardless of your experience level. This document will guide you through the process of contributing to the Serverpod project.
There are multiple ways to contribute to the Serverpod project. Here are some of the most common ways:
Serverpod's roadmap outlines the features and improvements that are planned for the project. The roadmap is subject to change, but provides a good overview over work in progress and what is planned for the future.
If you are considering contributing code to Serverpod, please check the roadmap to see if your contribution aligns with the project's goals.
Pull request are very much welcome. If you are working on something more significant than just a smaller bug fix, please declare your interest on an issue first. This way we can discuss the changes to ensure that they align with the project's goals and prevent duplicated work.
A good starting point is to look at our list of good first issues. These are issues that are relatively easy to fix and are a good way to get started with the project.
We understand that many contributors use AI tools to brainstorm, summarize, or speed up implementation work. That is fine, but please treat those tools as assistants, not as substitutes for your own judgment.
If you submit an AI-assisted pull request, please make sure that you:
If a pull request shifts the work of judging agent-generated changes onto the reviewer, the contributor is acting as a proxy for the agent rather than taking responsibility for the change. This consumes more time from reviewers and harms progress for the entire community.
We may decline contributions that appear to be low-quality, unreviewed AI output, or changes that the author cannot reasonably verify and maintain. This is not meant to discourage new contributors, but to keep the project healthy and reviewable for everyone.
Serverpod is a large project and contains many parts. Here is a quick overview of how Serverpod is structured and where to find relevant files required to contribute.
packagesHere, you find the core serverpod Dart packages.
serverpod: Contains the main Serverpod package, the ORM, basic authentication, messaging, and cache. It also contains the endpoints of the Serverpod Insights API.serverpod_client: Classes used by the generated client, these are not generated by the CLI tooling.serverpod_flutter: Client code that relies on Flutter. It contains implementations of classes defined in serverpod_client.serverpod_serialization: Code for handling serialization, which is shared between the serverpod package and serverpod_client.serverpod_service_client: This is the generated API for Serverpod Insights.serverpod_shared: Code that is shared between serverpod and Serverpod's tooling (i.e., serverpod_cli).serverpod_test: Contains code used by the test framework.templatesThe templates directory contains templates for the project.
serverpod_templates: Contains templates used when creating a new project with the serverpod create command.pubspec_templates: Templates for the pubspec files in the repository. To generate the real pubspec files from the templates, use the util/update_pubspecs script.toolsHere, you will find the code for Serverpod's tooling.
serverpod_cli: Serverpod's command line interface. The CLI also contains code for Serverpod's analyzer and code generation.serverpod_vs_code_extension: The VS Code extension is built around the CLI.modulesThese are 1st party modules for Serverpod. Currently, we maintain an authentication module. Modules contain server, client, Flutter code, and definitions for database tables.
integrationsThese are integrations for 3rd party services, such as Cloud storage.
examplesHere, you will find example projects that demonstrate how to use Serverpod.
testThis directory contains tests for the Serverpod project.
bootstrap_project: Tests that validate that all variations of a project can be created and run.docker: Docker configuration required for running the tests.serverpod_cli_e2e_test: End to end tests for the CLI.serverpod_test_server: Contains tests that require a complete Serverpod project. The folder contains tests from both the client and server side.serverpod_test_flutter: Contains tests for Flutter components used by the client.serverpod_test_client: Tests that only require the client.serverpod_test_module: General module tests.