Overview
Thelua mcp command manages Model Context Protocol (MCP) servers. Use it to list, activate, deactivate, and delete MCP servers.
MCP servers from integrations: When you connect a third-party account via
lua integrations connect, an MCP server is automatically created and activated. These integration-based servers have a source field set to unifiedto. You can manage them with both lua mcp and lua integrations mcp commands.Non-Interactive Mode
| Option | Description |
|---|---|
--server-name <name> | MCP server name (for activate/deactivate/delete) |
| Action | Description | Required Options |
|---|---|---|
list | List all MCP servers | None |
activate | Activate a server | --server-name or positional |
deactivate | Deactivate a server | --server-name or positional |
delete | Delete a server | --server-name or positional |
Commands
lua mcp
Interactive MCP server management.- List MCP servers
- Activate a server
- Deactivate a server
- Delete a server
lua mcp list
List all MCP servers and their status.lua mcp activate
Activate an MCP server to make its tools available.- Server is marked as active
- Server’s tools become available to your agent
- Tools appear in the agent’s tool list at runtime
lua mcp deactivate
Deactivate an MCP server to remove its tools.- Server is marked as inactive
- Server’s tools are removed from agent runtime
- Configuration is preserved (can be re-activated)
lua mcp delete
Permanently delete an MCP server.Command Aliases
| Command | Alias |
|---|---|
lua mcp list | lua mcp ls |
lua mcp activate | lua mcp enable |
lua mcp deactivate | lua mcp disable |
lua mcp delete | lua mcp rm |
Pushing MCP Servers
MCP servers can also be pushed using thelua push command:
--auto-deploy, MCP servers are automatically activated:
Workflow Example
Tips
Check status before activating
Check status before activating
Use
lua mcp list to see current status before making changesActivate only what you need
Activate only what you need
Keep unused servers deactivated to reduce overhead
Use --force for automation
Use --force for automation
In CI/CD, use
lua push all --force to avoid promptsRelated Commands
See Also
- MCP Servers Overview - Conceptual introduction
- LuaMCPServer API - Complete API reference
- Skill Management - Compile and push commands
- Integrations Command - Connect third-party accounts (auto-creates MCP servers)

