This guide shows how to configure Claude Desktop to use the SaaS Platform MCP server for programmatic access to your self-hosted SaaS platform.
npm run start)cd mcp-server
npm install -g .
This installs the mcp-saas-server command globally.
Edit this file: ~/Library/Application Support/Claude/claude_desktop_config.json
Edit this file: %APPDATA%\Claude\claude_desktop_config.json
Edit this file: ~/.config/Claude/claude_desktop_config.json
Add the following configuration:
{
"mcpServers": {
"saas-platform": {
"command": "mcp-saas-server",
"env": {
"SAAS_API_URL": "http://localhost",
"SAAS_AUTH_URL": "http://localhost/auth",
"SAAS_STORAGE_URL": "http://localhost/storage",
"DEBUG": "false"
}
}
}
}
Completely quit and restart Claude Desktop for the configuration to take effect.
Once configured, you can ask Claude to interact with your SaaS platform:
Please login to my SaaS platform using email: admin@saas.local and password: admin123
Show me my current user information
Register a new user with email test@example.com and password password123
List all my organizations
Create a new organization called "My Startup" with slug "my-startup"
Show me all applications in the default organization
Create a new TypeScript application with name "My App" and slug "my-app" in the default org
Deploy the application with ID app-uuid-here
List all files in the storage
Upload a configuration file with JSON content: {"api_key": "secret123", "timeout": 30}
Check the health of all platform services
Show me platform statistics
The MCP server provides these tools to Claude:
saas_login - Authenticate with the platformsaas_logout - Logout current sessionsaas_get_current_user - Get current user detailssaas_register_user - Register new user accountsaas_list_organizations - List user's organizationssaas_create_organization - Create new organizationsaas_get_organization - Get organization detailssaas_list_applications - List applicationssaas_create_application - Create new applicationsaas_get_application - Get application detailssaas_deploy_application - Deploy applicationsaas_get_deployments - Get deployment historysaas_health_check - Check platform healthsaas_get_platform_stats - Get platform statisticssaas_list_files - List storage filessaas_upload_file - Upload filessaas_download_file - Download filessaas_delete_file - Delete files# Verify installation
which mcp-saas-server
# Reinstall if needed
cd mcp-server
npm install -g .
npm run start)Enable debug logging by setting "DEBUG": "true" in your Claude Desktop config:
{
"mcpServers": {
"saas-platform": {
"command": "mcp-saas-server",
"env": {
"SAAS_API_URL": "http://localhost",
"SAAS_AUTH_URL": "http://localhost/auth",
"SAAS_STORAGE_URL": "http://localhost/storage",
"DEBUG": "true"
}
}
}
}
If you want to modify the MCP server:
cd mcp-server
npm install
npm run dev
# Test with MCP Inspector
npm install -g @modelcontextprotocol/inspector
mcp-inspector dist/index.js
For production environments:
If you encounter issues: