Gemini CLI con MCP: Guía Completa de Integración Paso a Paso [2025]

Gemini CLI con MCP: Guía Completa de Integración Paso a Paso [2025]

Introduction to MCP Model Contest Protocol

Overview of the Session

  • The speaker welcomes viewers to the AI Community and introduces the topic: the MCP Model Contest Protocol, with a focus on using Yem Initial for programming.
  • Viewers are encouraged to watch a previous video about the Gem Initial ecosystem for foundational knowledge before diving into this session.

Key Topics Covered

  • The discussion will cover Gemini Cali, an overview of NCP (Model Context Protocol), local and remote options, and practical use cases.
  • NCP is described as an open standard that connects Gemini CLI with external services, acting as a bridge between AI and external data.

Understanding NCP in Gemini CLI

Functionality of NCP

  • Practical applications include correcting code, creating web pages, installing libraries, and extracting real-time data like cryptocurrency updates.
  • A variety of free and open-source tools are available for NCP; examples include Crypto, Google News, Server KitHood, and Contex Sen for technical documentation.

Customization and Use Cases

  • Users can create their own NCP locally to connect directly through it. This involves configuring settings within Gemini Cal.
  • Creative uses for MCP include automating tasks such as organizing daily activities or generating educational content.

Getting Started with Local MCP

Initial Setup Steps

  • Beginners are advised to watch prior videos on Gemini CLI before attempting to set up their first NCP connection.
  • The speaker demonstrates verifying Node version compatibility (noting a requirement above version 20).

Connecting to NCP Tools

  • The process includes authenticating with an API (e.g., Google Studio), which allows users to access connected services via their terminal.
  • A repository containing various free NCP tools is mentioned; users can select from different categories based on their needs.

Exploring Free NCP Options

Selection of Tools

  • An example tool related to cryptocurrencies called Coingco is highlighted as a user-friendly option that provides API access at no cost.

Coingeko API Integration and NCP Setup

Introduction to Coingeko Platform

  • The speaker introduces the Coingeko platform, highlighting the registration option to obtain an API key. They emphasize the importance of this API for local MCP (Model Context Protocol) connection.

Understanding the Repository

  • The repository in focus serves as an intermediary server designed to connect Gemini Cali with the Coingeko API, providing context for its purpose.

Purpose of the NCP Server

  • The project is described as a connector for manual testing rather than a direct application, allowing users to understand and utilize Coingeko's functions effectively.
  • The NCP server exposes 46 tools through a single connection, significantly enhancing functionality available via terminal commands.

Documentation Review

  • The speaker navigates to Coingeko documentation regarding the NCP Server, noting two options: local and remote servers. They focus on using the local server option initially.

Setting Up Local Connection

  • Instructions are provided on how to copy code from documentation for setting up a local connection through the Model Context Protocol (MCP).
  • Emphasis is placed on ensuring that they use a free API key while configuring their setup in the terminal.

Manual Configuration Steps

  • A manual step involves validating data flow between their terminal and Coingeko by copying necessary configurations into their repository.

Securing API Keys

  • To prevent exposure of sensitive information like API keys when using version control systems such as GitHub, they create a .env file for secure storage.

Installing Dependencies

  • The speaker discusses creating a package.json file essential for installing dependencies related to running NCP locally.

Verifying Functionality

  • After setting up, they run procedures in their terminal to ensure that their backend is functioning correctly and that all tools are accessible.

Connecting with Yicial Configuration

Local and Remote NCP Connection Setup

Setting Up Local Repository

  • The speaker discusses the local repository setup, providing a full address for access. This allows Yeminc to connect to the repository locally.
  • Emphasizes the importance of verifying local connections, as some platforms may only offer remote or local options, impacting data retrieval methods.

Verifying NCP Functionality

  • The speaker tests the connection by querying the current price of Bitcoin using one of 46 available functions, confirming successful data retrieval with a price output.
  • Notes that while manual setup helps understand processes, remote options are generally faster and easier for initial setups.

Community Engagement and Resources

  • Encourages support through the Coffee platform for community contributions and mentions upcoming content related to AI-generated images on yacomunidad.com.
  • Highlights various AI tools available on yacomunidad.com, including user-generated images and models categorized for ease of access.

Transitioning to Remote Connection

  • The speaker prepares to demonstrate connecting remotely via the Yemincal platform after establishing a local connection first for better understanding.
  • Mentions that yacomunidad.com is under maintenance but will soon be operational again; emphasizes speed advantages of remote connections over local ones.

Executing Remote Queries

  • Describes modifying settings in Gemini configuration to switch from local to remote NCP server access, ensuring successful information retrieval from Coingecko's cloud servers.

Coin Price Inquiry and Response

Searching for Doc Coin Price

  • The speaker is attempting to retrieve the price of Doc Coin using a platform's Coin CP Server function, indicating a focus on cryptocurrency pricing.
  • Despite experiencing internet connectivity issues, the speaker successfully receives a response regarding the price of Doc Coin.
  • The reported price of Doc Coin is 0.26, which the speaker considers a successful outcome from their inquiry.