• RAW DATA
  • FILTERED
  • ANALYSIS
  • HUMAN

How to extract raw market data with your AI

Connect the CNMC MCP to your AI client to pull specific datasets directly from official regulatory resources.

Ask AI about this page

Short answer

How do I pull specific rows from CNMC?

Give your agent the resource ID for the dataset you need. It uses the datastore_search tool to grab the exact records you're looking for. You'll get clean, raw data rows ready for analysis.

Data extraction outcomes

Where your data lands.

What happens when you request CNMC records.

RAW DATA

Direct record retrieval

The AI pulls specific rows from the CNMC datastore. You get the raw values without manual scraping.

FILTERED

Targeted row selection

Your agent isolates only the specific entries you asked for. This prevents you from wading through useless bulk data.

ANALYSIS

Immediate data processing

Once the records are pulled, your AI can immediately summarize or compare the values. The data is ready for your next question.

HUMAN

Manual verification

You decide if the extracted rows meet your requirements. The AI handles the fetching, but you handle the final validation.

The workflow

What your AI does when the resource ID arrives.

The AI handles the technical handshake with the CNMC datastore to fetch your data.

  1. Identify the resource

    Your agent identifies the specific CNMC dataset you want to query based on the ID you provide.

    datastore_search
  2. Execute the search

    The AI runs a search against the CNMC datastore to locate the requested records.

    datastore_search
  3. Filter the results

    The agent narrows down the returned records to match your specific criteria or row counts.

    datastore_search
  4. Present the data

    The AI displays the raw data rows in your chat interface for you to read or use.

    datastore_search

Try it

Copy these to start.

Use these prompts to begin pulling data.

Starting points

Swap the bracketed text with your actual CNMC resource ID and the specific columns you need.

CNMC (Comisión Mercados y Competencia) Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_JSx3Nrz9CP762s87eYFcDgvORa1rTBabYbrxGVQZ/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — CNMC (Comisión Mercados y Competencia) capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "cnmc-comision-mercados-y-competencia-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_JSx3Nrz9CP762s87eYFcDgvORa1rTBabYbrxGVQZ/mcp"
    }
  }
}
Copy into chat04
  • Use the CNMC tool to get the first 10 rows from resource ID [ID_HERE].

  • Find all records in CNMC resource [ID_HERE] where the value in the 'price' column is greater than 100.

  • Pull the raw data for resource [ID_HERE] and list the unique values in the 'sector' column.

  • Search CNMC resource [ID_HERE] for entries matching the criteria [CRITERIA].

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect CNMC once, then ask.

One click connects this MCP to your client. Your credentials stay encrypted, and you can start querying CNMC data immediately.

Connect CNMC to your AI

FAQ

How this task behaves

  • 01

    Can the AI change data in the CNMC database?

    No. The tool only allows for searching and retrieving existing records.

  • 02

    Do I need to provide the resource ID every time?

    Yes. The AI needs the specific resource ID to know which dataset to query.

  • 03

    Can the AI download these records as a CSV file?

    No. The AI retrieves the data and presents it in your chat. You would need to copy the text to save it as a file.

  • 04

    Can the AI search for data that isn't in the CNMC datastore?

    No. The AI is limited to the resources accessible through the CNMC tool.

  • 05

    Does the AI handle the login to CNMC?

    Yes. Once you connect the MCP, the AI handles the connection to the resource.

  • More questions about CNMC? The Connector page answers them. See everything the CNMC Connector can do

Connect CNMC (Comisión Mercados y Competencia) to Claude, Cursor, ChatGPT & more