Gemini CLI

gemini cli

add antwork as an mcp server in gemini cli. create, schedule, and manage social media posts from google's ai terminal.

// prerequisites
  • Node.js 18+ installed
  • An antwork account with at least one workspace
// step 1 — install gemini cli

install gemini cli globally via npm if you haven't already:

terminal
npm install -g @google/gemini-cli
// step 2 — add antwork mcp server

run the following command to add antwork as a remote mcp server:

terminal
gemini mcp add --transport http antwork https://api.antwork.io/mcp
// step 3 — authenticate

authenticate with antwork by running the /mcp auth command inside gemini cli:

gemini cli
> /mcp auth antwork

your browser will open for the oauth consent screen. log in if needed, then approve the permissions. once approved, gemini cli stores your tokens and refreshes them automatically.

// usage

once configured, you can use antwork tools in gemini cli. ask gemini to create posts, check analytics, or schedule content directly from your terminal.