# MD for: https://www.mercadopago.com.ar/developers/pt/docs/mp-plugin/install.md \# Install the plugin The Mercado Pago plugin is available for the \_Claude Code\_ and \_Codex\_ AI agents. Follow the steps below to install it, authenticate your account, and verify that everything is set up correctly. :::::AccordionComponent{title="Install the plugin" pill="1"} In the tabs below, choose the AI agent that best fits your project and follow the steps to get started. ::::TabsComponent :::TabComponent{title="Claude Code"} The plugin can be installed from the terminal or directly from the Claude Code interface. ### Install from the terminal Run the following command: \`\`\`bash claude plugin install mercadopago@claude-plugins-official \`\`\` Claude Code downloads and installs the plugin automatically. No restart is required to confirm the operation completed. ### Install from the Claude Code interface Follow the steps: 1\. Open your Claude Code account and go to the \*\*Customize\*\* section in the right side menu. 2\. Go to the \*\*Extensions\*\* menu and select \*\*Explore extensions\*\*. 3\. In the \*\*Partners\*\* tab, search for \*\*Mercado Pago\*\*. 4\. Click the \*\*plus (+)\*\* icon. !\[Application summary\](/images/mp-plugin/mp-plugin-install-claude-en-v1.png) The plugin is available immediately in all conversations. ::: :::TabComponent{title="Codex"} The plugin can be installed from the terminal. ### Install from the terminal Run the following commands: \`\`\`bash codex plugin marketplace add mercadopago/mercadopago-codex-marketplace codex plugin add mercadopago@mercadopago-codex-marketplace \`\`\` Codex downloads and installs the plugin automatically. ::: :::: ::::: :::::AccordionComponent{title="Authenticate your account with the plugin" pill="2"} To enable some plugin functions and let it communicate in real time with your :toolTipComponent\[application\]{content="Entity registered in Mercado Pago that acts as an identifier for managing your integrations. For more information, access the link below." link="/developers/en/docs/your-integrations/application-details" linkText="Application details"} and your development environment, you need to authenticate. If you prefer to use the plugin without account authentication, you can skip to the \[Verify the installation\](https://www.mercadopago.com.ar/developers/en/docs/mp-plugin/install#bookmark\_verify\_the\_installation) section. ::::TabsComponent :::TabComponent{title="Connect the plugin to your Mercado Pago account"} Start the authentication flow by running the command: \`\`\` /mp-connect \`\`\` The plugin opens your system's default browser with the Mercado Pago authorization page. Log in with your account and authorize the connection to the plugin. After completing the authorization, return to your AI agent session and the additional functions become available immediately. > WARNING > > The connection process always happens in the browser through \[OAuth\](https://www.mercadopago.com.ar/developers/en/docs/security/oauth) authentication. Don't share or enter your :toolTipComponent\[Access Token\]{content="Private key of the application, used in the backend to authenticate calls to the Mercado Pago API. You can access it under \*Your integrations\* > \*Application details\* > \*Credentials\*."} or any other credentials directly in the chat with the AI agent. The session remains active with the AI agent until you manually end it. If you already have a connected account when you run \`/mp-connect\`, the plugin checks the current state and reports without starting a new authentication flow. ::: :::TabComponent{title="Disconnect your account from the plugin"} To end the active session, run the command: \`\`\` /mp-connect logout \`\`\` The plugin removes locally stored credentials and confirms the disconnection. After ending the session, only the \[commands\](https://www.mercadopago.com.ar/developers/en/docs/mp-plugin/commands) available without authentication remain active. ::: :::: ::::: :::AccordionComponent{title="Verify the installation" pill="3"} To confirm that the plugin is ready to use, follow the steps below: 1\. Run the following command in any AI agent conversation: \`\`\`text /mp-connect \`\`\` 2\. The plugin opens the Mercado Pago OAuth authentication flow in the browser. Complete the authentication, or if you want to confirm the installation without authentication, run one of the available commands: \`\`\`text /mp-test-cards \`\`\` In this case, the plugin returns the test cards available for your country. 3\. If any of the commands are not recognized, verify that the plugin is installed by running the command below. \`\`\`bash claude plugin list \`\`\` The plugin should appear in the list as \`mercadopago@claude-plugins-official\`. :::