Skip to main content

Install MCP Server

Use the one-click deeplink to install (requires Cursor and Container Use already installed): Install MCP Server

Add Agent Rules

Add the rules file to your project or home directory:
curl --create-dirs -o .cursor/rules/container-use.mdc https://raw.githubusercontent.com/dagger/container-use/main/rules/cursor.mdc

Verification

After setting up Cursor, verify Container Use is working:
  1. Check MCP Connection: Cursor should recognize Container Use tools
  2. Test Environment Creation: Ask Cursor to create a new environment
  3. Verify Isolation: Multiple environments should work independently

Troubleshooting

  • Verify the cu command is in your PATH: which cu
  • Check MCP configuration syntax
  • Restart Cursor after configuration changes
  • Ensure Docker is running and accessible
  • Check file permissions for configuration files
  • Verify cu stdio command works: echo '{}' | cu stdio
  • Check your Cursor MCP server logs
  • Verify Container Use tools are enabled in settings

Next Steps

Back to Quickstart

Return to the quickstart guide to create your first environment

Join Community

Get help and share experiences in #container-use