Citizen Deployment MCP Server
Supports deploying applications using Dockerfiles, featuring intelligent error handling and automatic fixes for build-related issues.
Enables the deployment and management of Flask applications on the Citizen platform with automatic environment troubleshooting.
Allows for deploying applications directly from Git repositories, including tools for monitoring status and logs.
Enables deploying applications from GitHub repositories with automated deployment workflows and error analysis.
Supports deploying Node.js applications, with capabilities to automatically detect and fix common build errors and versioning issues.
Provides tools for deploying Python applications, including the ability to automatically identify and resolve version mismatches and dependency errors.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Citizen Deployment MCP ServerDeploy the current directory and fix any build errors automatically"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Citizen Deployment MCP Server
Model Context Protocol (MCP) server for deploying applications to Citizen platform. Deploy from git or local files with intelligent error handling and automatic fixes.
Works with:
✅ Claude Desktop
✅ Claude Code (VS Code Extension)
✅ Cursor
✅ VS Code with MCP extension
Installation
npm install -g @citizenteam/mcp
# or
bun install -g @citizenteam/mcpQuick Setup
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"citizen": {
"command": "npx",
"args": ["-y", "@citizenteam/mcp"]
}
}
}Config file location:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Claude Code (VS Code Extension)
Open VS Code settings (Cmd/Ctrl + ,)
Search for "MCP Servers"
Click "Edit in settings.json"
Add:
{
"claude.mcpServers": {
"citizen": {
"command": "npx",
"args": ["-y", "@citizenteam/mcp"]
}
}
}Cursor
Open Cursor Settings → Features → MCP
Click "Add MCP Server"
Enter configuration:
{
"citizen": {
"command": "npx",
"args": ["-y", "@citizenteam/mcp"]
}
}Or manually edit ~/.cursor/mcp.json:
{
"mcpServers": {
"citizen": {
"command": "npx",
"args": ["-y", "@citizenteam/mcp"]
}
}
}VS Code (with MCP extension)
Install MCP extension for VS Code
Open settings.json (Cmd/Ctrl + Shift + P → "Preferences: Open Settings (JSON)")
Add:
{
"mcp.servers": {
"citizen": {
"command": "npx",
"args": ["-y", "@citizenteam/mcp"]
}
}
}First Time Setup
Restart your IDE/Claude Desktop after adding the configuration
Use the
authenticatetool to login with device flowFollow the device authorization link in your browser
Once authorized, you can deploy apps!
Available Tools
Authentication
authenticate- Login with device flowcheck_auth_status- Check auth status
App Management
list_apps- List your apps (RBAC filtered)get_app_info- Get app details
Deployment
deploy_from_git- Deploy from git repositorydeploy_from_local- Deploy from local directoryget_deployment_status- Check deployment status and logslist_deployment_runs- List recent deployments
Available Resources
Deployment Instructions (citizen://instructions)
A comprehensive guide that helps LLMs understand:
Complete deployment workflows (git and local)
Error handling and debugging strategies
How to fix common build errors (Python version, Node version, port binding, etc.)
Best practices for monitoring deployments
RBAC permission model
Common nixpacks configurations
Example conversations and use cases
Your AI assistant will automatically read this resource to understand how to properly use the deployment tools, monitor builds, and fix errors when they occur.
Example Usage
Basic Deployment
You: Deploy my app from github.com/user/repo.git
AI will:
1. Read the deployment instructions to understand the workflow
2. Check if you're authenticated
3. List your apps to see what's available
4. Deploy using deploy_from_git tool
5. Monitor the deployment with get_deployment_status
6. If errors occur, analyze logs and suggest fixesDeployment with Error Handling
You: Deploy my Flask app from the current directory
AI will:
1. Deploy using deploy_from_local (creates tar.gz automatically)
2. Monitor build progress
3. If build fails (e.g., "Python 3.11 not found"):
- Read the error from logs
- Create/update nixpacks.toml with correct Python version
- Redeploy automatically
4. Continue monitoring until successfulInteractive Debugging
You: My last deployment failed, can you help?
AI will:
1. List recent deployment runs
2. Get detailed logs for the failed run
3. Analyze the error (missing dependency, version mismatch, etc.)
4. Suggest and apply fixes
5. Redeploy with correctionsFeatures
🔐 Secure Device Authentication - OAuth-like device flow, no passwords needed
🚀 Git & Local Deployment - Deploy from GitHub or local files
🤖 Intelligent Error Fixing - AI analyzes logs and fixes build errors automatically
📊 Real-time Monitoring - Live deployment logs and status updates
🔒 RBAC Support - Role-based access control (viewer, member, admin, owner)
🏗️ Auto-detect Builders - Supports nixpacks and Dockerfile
🔄 Fast Iteration - Local deployment for quick fixes without git commits
Requirements
Node.js 18+ or Bun
Citizen platform account (sign up)
One of: Claude Desktop, Claude Code, Cursor, or VS Code with MCP extension
Troubleshooting
Authentication Issues
Make sure you've run the
authenticatetoolCheck if your token has expired with
check_auth_statusVerify you're using the correct organization
Deployment Failures
The AI will automatically analyze logs and suggest fixes
Common issues: Python/Node version mismatches, missing dependencies, port binding
Use
deploy_from_localfor faster iteration when fixing errors
Permission Denied
Check your role with
list_apps- you may not have access to that appContact your organization admin to grant you member+ role
Links
License
MIT © Citizen Team
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/citizenteam/mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server