{
  "markdown": "# Data Commons Extension for Gemini CLI\n\nThis is a Gemini CLI extension that allows you to query public datasets from [Data Commons](https://datacommons.org/) using natural language, and to ground AI responses from any any other tools in authoritative data, to reduce hallucinations.\n\nThis page provides basic instructions for installing and running the extension. For complete information on using Data Commons with Gemini CLI, please see the [Data Commons documentation](https://docs.datacommons.org/mcp).\n\n## Prerequisites\n\nBefore using this extension, you will need:\n\n-  [Gemini CLI](https://geminicli.com/docs/get-started/) installed.\n-   A free Data Commons API key. To obtain an API key, go to https://apikeys.datacommons.org and request a key for the api.datacommons.org domain.\n\n## Installation\n\n1. Set your Data Commons API key as an environment variable in your shell or startup script (e.g. `.bashrc`):\n   ```\n   export DC_API_KEY=<YOUR_API_KEY>\n   ```\n1. Install the extension directly from GitHub:\n   ```sh\n   gemini extensions install https://github.com/gemini-cli-extensions/datacommons\n   ```\n> Note: If you have previously configured Gemini CLI to use the Data Commons MCP Server in a `settings.json` file (e.g. `~/.gemini/settings.json`) and want to use the extension instead, be sure to delete the `datacommons-mcp` section from the file.\n\n## Usage\n\n1. Run `gemini`. \n1. To verify that the Data Commons tools are running, enter `/mcp list`. You should see the `datacommons-mcp` tools listed as \"ready\". If you don't, try running in [debug mode](#troubleshooting) to get diagnostic information.\n1. Ask questions about statistical data in natural language. \n\n### Examples\n\n*   \"What is the population of California?\"\n*   \"Show me the median income in Santa Clara County.\"\n*   \"Compare the GDP of Japan and Germany.\"\n*   \"Poverty indicators for India\"\n\n## How it works\n\nThis extension uses the [Data Commons MCP Server](https://github.com/datacommonsorg/agent-toolkit/tree/main/packages/datacommons-mcp) to translate natural language queries into Data Commons API calls.\n\nThe extension also provides a context file (`DATACOMMONS.md`) that gives the Gemini agent instructions on how to handle user queries and tool responses.\n\n## Troubleshooting\n\nYou can diagnose common errors, such as invalid API keys, by using the debug flag:\n```\ngemini -d\n```\n\n## Uninstall\n\nTo uninstall the extension, run:\n```\ngemini extensions uninstall datacommons\n```",
  "bytes": 2459,
  "sha": "d4b31705b5b338487624a81e30e567f6ea927c0f5897b9cf8bc9c6d159017099",
  "repo_slug": "gemini-cli-extensions/datacommons",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/plg_gemini_cli_extensions_datacommons_044f6618/readme"
}