A Model Context Protocol (MCP) server that brings Serverpod documentation and guides into any MCP-compatible client. It exposes searchable docs as resources and provides tools for Q&A and guide retrieval.
Install the CLI tool by running:
dart pub global activate serverpod_mcp
Add this MCP server to your editor. Example Cursor config:
{
"mcpServers": {
"dart": {
"command": "dart",
"args": [
"mcp-server"
]
},
"serverpod": {
"command": "serverpod_mcp",
"args": [
"--gemini-api-key",
"YOUR_GEMINI_API_KEY"
],
"rootDetection": {
"strategy": "workspace"
}
}
}
}
You need to specify a Gemini API key for the MCP server to answer natural language questions. It uses only a few calls to lower-tier Gemini models, so it's very inexpensive (the free tier should be sufficient). You can get your free API key here.
Alternatively, you can specify your Gemini API key via the SERVERPOD_MCP_GEMINI_API_KEY
environment variable.
- Serverpod guides and docs are exposed as MCP resources, fetched from Serverpod's Starguide backend.
- Ask natural language questions about Serverpod; answers are generated using Gemini based on documentation and answered discussions.
- Dart SDK: ^3.8.1
- Gemini API key: Required only for
ask-docs