• SEARCH
  • DETAILS
  • FILTER
  • HUMAN

How to find Barcelona open data with your agent

Connect the Ayuntamiento de Barcelona (CKAN) MCP to your AI client. Once connected, you can query the city's data catalog using plain English.

Ask AI about this page

Our technology reaches across leading technology and enterprise teams.

  • Amazon
  • NVIDIA
  • Red Hat
  • Fidelity Investments
  • Intuit
  • OLX Brasil
  • Writesonic
  • Artium
  • Trolley
Bunny World Voxel Workspace

Short answer

How can I search Barcelona's open data using my AI?

You can use natural language to query the entire BCN catalog. Your agent identifies relevant datasets and pulls their technical metadata for you. This breakdown shows how the search and retrieval process works.

The outcomes

What you get from your agent

Your agent turns your questions into precise database queries.

SEARCH

Dataset discovery

Your agent scans the city's catalog to find datasets that match your specific topics. You get a list of matching files and resources.

DETAILS

Metadata access

Your agent pulls technical details like file formats and update frequencies. You see the data's context without browsing the web portal.

FILTER

Natural language filtering

Instead of clicking through complex web menus, tell your agent what you need. It handles the logic of narrowing down results.

HUMAN

Final data selection

Your agent finds the data, but you decide if it's actually useful. You remain the final judge of the information's relevance.

The workflow

What your agent does when you ask a question.

Your agent acts as a bridge between your chat interface and the city's CKAN database.

  1. Find datasets

    Your agent translates your request into a search query to find matching packages in the Barcelona catalog.

    bcn_package_search
  2. Retrieve metadata

    After finding a match, your agent pulls the full technical profile of that specific dataset.

    bcn_package_show
  3. Refine the search

    If the first search is too broad, your agent uses the search tool again with more specific parameters.

    bcn_package_search
  4. Present results

    Your agent summarizes the dataset names and available formats in a clear list for you.

    bcn_package_show

Vinkius Agentic Execution Platform

State the outcome. Agents take it from there.

You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.

Run it in Vinkius

Agents carry the task to the end

Agents execute Open Data BCN tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.

Take it to any compatible AI

One connection, any client

Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.

Spaces

One Space per activity

A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.

Limits

Autonomy inside limits you set

Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.

Record

All steps, on the record

Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.

Models

Included in your plan

A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.

Try it

Copy these to start.

Use these prompts to begin interacting with the Barcelona catalog.

Starting points

Swap out the bracketed topics for whatever you are actually looking for, like 'transportation' or 'weather'.

Open Data BCN Connector

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

Connector linkhttps://edge.vinkius.com/vk_preview_iv5GYpi3FqmjfmjJOIvg9apgeu4Cf7aNs3ZIC6cs/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, Open Data BCN capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "ayuntamiento-de-barcelona-ckan-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_iv5GYpi3FqmjfmjJOIvg9apgeu4Cf7aNs3ZIC6cs/mcp"
    }
  }
}
Copy into chat04
  • 01

    Find all datasets related to public transport in Barcelona.

  • 02

    Show me the metadata for the dataset about city air quality.

  • 03

    Search for datasets containing information about local schools.

  • 04

    List the most recent datasets uploaded regarding urban gardening.

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

Start here

Connect Ayuntamiento de Barcelona (CKAN) once, then ask.

Click the link below to link this MCP to your client. Your credentials stay encrypted and secure, and you can immediately start querying the city's data.

Connect Ayuntamiento de Barcelona (CKAN) to your agent

FAQ

How the search behaves

  • 01

    Can your agent download the actual CSV files for me?

    No. Your agent can find the datasets and provide the metadata and download links, but you must download the files yourself.

  • 02

    Can I use this to change or delete data in the city catalog?

    No. This MCP is read-only. It can only search and retrieve information from the public catalog.

  • 03

    Does your agent know about datasets added yesterday?

    Yes, as long as they have been indexed in the official Barcelona Open Data CKAN catalog.

  • 04

    Can your agent filter by specific file formats like JSON?

    Yes, you can ask your agent to find datasets that are available in JSON format.

  • 05

    Can your agent create new datasets for the city?

    No. The tools only allow for searching and viewing existing public data.

  • More questions about Ayuntamiento de Barcelona (CKAN)? The Connector page answers them. See everything the Ayuntamiento de Barcelona (CKAN) Connector can do

Building with AI? Ship this whole workflow in your product.

Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from Open Data BCN to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.

Explore Vinkius Connect

TypeScript · Python · Java · Go · C# · PHP · Rust

  • 01

    Your customers bring their own keys.

    Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.

  • 02

    Whole catalog, kept current.

    Open Data BCN plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.

  • 03

    Any agent, any model.

    Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.

Connect Open Data BCN to Claude, Cursor, ChatGPT & more

From idea to done

See what gets done when the agents take over the busywork

Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.