<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Gabriel Alejandro Garcia</title>
    <description>The latest articles on Forem by Gabriel Alejandro Garcia (@zogar).</description>
    <link>https://forem.com/zogar</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3757462%2F3f762141-e5a3-48e1-bbad-e04391588b5a.png</url>
      <title>Forem: Gabriel Alejandro Garcia</title>
      <link>https://forem.com/zogar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/zogar"/>
    <language>en</language>
    <item>
      <title>How to Connect MercadoLibre MCP in Antigravity/Cursor: The Missing Guide</title>
      <dc:creator>Gabriel Alejandro Garcia</dc:creator>
      <pubDate>Fri, 06 Feb 2026 23:37:48 +0000</pubDate>
      <link>https://forem.com/zogar/how-to-connect-mercadolibre-mcp-in-antigravitycursor-the-missing-guide-1fbg</link>
      <guid>https://forem.com/zogar/how-to-connect-mercadolibre-mcp-in-antigravitycursor-the-missing-guide-1fbg</guid>
      <description>&lt;p&gt;If you are using &lt;strong&gt;Antigravity&lt;/strong&gt; (or Cursor) as your AI-native IDE, you might have noticed that the official MercadoLibre developers documentation haven't caught up with these tools yet. Setting up the &lt;strong&gt;Model Context Protocol (MCP)&lt;/strong&gt; for MeLi can be tricky due to specific port requirements and OAuth flows.&lt;/p&gt;

&lt;p&gt;After a long troubleshooting session, I've cracked the code on how to get it working perfectly. Here is the definitive guide for Antigravity users.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. The "Application Not Ready" Error
&lt;/h2&gt;

&lt;p&gt;The most common issue: you authorize in the browser, but the page says:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"La aplicación no está preparada para conectarse a Mercado Libre"&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  The Problem
&lt;/h3&gt;

&lt;p&gt;The official MeLi MCP proxy app strictly expects a redirect to &lt;code&gt;http://localhost:18999&lt;/code&gt;. However, the &lt;code&gt;mcp-remote&lt;/code&gt; client used by IDEs like Antigravity often picks a random port (like 17135) if not told otherwise.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Fix: Force Port 18999
&lt;/h3&gt;

&lt;p&gt;In your &lt;code&gt;mcp_config.json&lt;/code&gt; (usually in &lt;code&gt;%APPDATA%\.gemini\antigravity\&lt;/code&gt;), you must add &lt;strong&gt;18999&lt;/strong&gt; as a positional argument.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"mercadolibre"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"mcp-remote"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"https://mcp.mercadolibre.com/mcp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"18999"&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="err"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;&amp;lt;--&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;REQUIRED&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;for&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;MeLi&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;compatibility&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"disabled"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  2. Eliminate Conflict: Remove Manual Headers
&lt;/h2&gt;

&lt;p&gt;If you previously tried to add a token manually, &lt;strong&gt;delete it&lt;/strong&gt;. You cannot use a hardcoded Bearer token while using the OAuth browser flow.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;[!WARNING]&lt;br&gt;
&lt;strong&gt;Remove the following lines&lt;/strong&gt; from your &lt;code&gt;mcp_config.json&lt;/code&gt;:&lt;br&gt;
&lt;code&gt;"--header",&lt;/code&gt;&lt;br&gt;
&lt;code&gt;"Authorization: Bearer APP_USR-..."&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Keeping these while trying to log in via browser will cause the authentication exchange to fail with "Existing OAuth client information is required".&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Resolving Port Conflicts (EADDRINUSE)
&lt;/h2&gt;

&lt;p&gt;If you get an error saying &lt;code&gt;address already in use 127.0.0.1:18999&lt;/code&gt;, it means a previous (failed) attempt left a "zombie" process running.&lt;/p&gt;

&lt;h3&gt;
  
  
  Windows Recovery (PowerShell):
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Kill all Node.js zombies:&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="n"&gt;taskkill&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;/F&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;/IM&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;node.exe&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Clear the corrupt auth cache:&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="n"&gt;rmdir&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;/S&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;/Q&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="bp"&gt;$HOME&lt;/span&gt;&lt;span class="nx"&gt;\.mcp-auth&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  4. Final Tips for Antigravity/Cursor Users
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Browser Specifics&lt;/strong&gt;: If &lt;strong&gt;Firefox&lt;/strong&gt; is your default browser and the "Authorization Successful" page doesn't seem to talk back to your IDE, &lt;strong&gt;copy and paste the link into Chrome&lt;/strong&gt;. It often handles the local callback more reliably for dev tools.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Beat the Timeout&lt;/strong&gt;: Antigravity has a built-in timeout. Once the browser opens, complete the authorization quickly. If it fails, you'll see a &lt;code&gt;context deadline exceeded&lt;/code&gt; error.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ngrok?&lt;/strong&gt;: You &lt;strong&gt;don't&lt;/strong&gt; need Ngrok for this setup. The MeLi MCP Proxy is an official app that already has permission to talk to your &lt;code&gt;localhost:18999&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Summary
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Force &lt;strong&gt;18999&lt;/strong&gt; in your config.&lt;/li&gt;
&lt;li&gt;Remove any &lt;strong&gt;manual headers&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Clear &lt;strong&gt;zombie node processes&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Use &lt;strong&gt;Chrome&lt;/strong&gt; if the callback fails.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Happy AI-Coding! 🚀&lt;/p&gt;

</description>
      <category>mercadolibre</category>
      <category>mcp</category>
      <category>antigravity</category>
    </item>
  </channel>
</rss>
