client connect
Connect to a remote or stdio MCP server and save the session.
# Remote server (runs the OAuth flow on 401)
mcp-use client connect myserver https://<slug>.run.mcp-use.com/mcp
# With a bearer token instead of OAuth
mcp-use client connect myserver https://example.com/mcp --auth <token>
# Local stdio server
mcp-use client connect local "node dist/index.js" --stdioSaved servers persist in ~/.mcp-use/cli-sessions.json. See client list and client tools.