- DATA
- STATS
- QUERY
- HUMAN
Our technology reaches across leading technology and enterprise teams.

Short answer
How can I query Barcelona city data with my AI?
Your AI client writes and executes SQL queries against the Barcelona Open Data datastore. You'll get specific counts, filtered lists, and data summaries directly in your chat. Here is how the process works.
Data outcomes
What you get from your queries
Your agent handles the technical data retrieval so you can focus on the results.
DATA
Filtered record sets
Your agent pulls specific rows from city datasets based on your criteria. You get clean, structured data instead of massive CSV files.
STATS
Instant counts and sums
Ask for totals, averages, or specific counts. Your agent calculates these values using the underlying datastore.
QUERY
SQL-based extraction
Your agent translates your questions into valid SQL. It executes these against the CKAN datastore to find exactly what you need.
HUMAN
Data interpretation
Your agent provides the raw numbers and filtered lists. You decide how to use these insights for your reports or projects.
The workflow
What your agent does when the request arrives.
Your agent acts as a bridge between your conversation and the Barcelona city database.
Translate intent
Your agent takes your plain English question and determines which dataset and columns are required to answer it.
bcn_datastore_search_sqlConstruct SQL
Your agent builds a precise SQL query designed to work with the CKAN datastore structure.
bcn_datastore_search_sqlExecute query
Your agent sends the command to the Ayuntamiento de Barcelona API to fetch the requested records.
bcn_datastore_search_sqlFormat results
Your agent receives the raw data and presents it to you in a readable format like a table or a summary.
bcn_datastore_search_sql
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 city's data.
Starting points
Swap out the dataset names and column filters for the specific Barcelona data you want to analyze.
Open Data BCN Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_iv5GYpi3FqmjfmjJOIvg9apgeu4Cf7aNs3ZIC6cs/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat, Open Data BCN capabilities are ready to use.
{
"mcpServers": {
"ayuntamiento-de-barcelona-ckan-mcp": {
"url": "https://edge.vinkius.com/vk_preview_iv5GYpi3FqmjfmjJOIvg9apgeu4Cf7aNs3ZIC6cs/mcp"
}
}
}- 01
Show me the total count of bike stations in Barcelona from the city datasets.
- 02
List the top 10 most populated districts using the census data.
- 03
Find all public transport routes that pass through Eixample.
- 04
How many trees were planted in the last year according to the urban green space dataset?
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect Ayuntamiento de Barcelona (CKAN) once, then ask.
Click the link to connect the MCP to your client. Your credentials stay encrypted and the setup is handled on our side.
Connect Ayuntamiento de Barcelona (CKAN) to your agentFAQ
How this task behaves.
- 01
Can your agent change or delete data in the Barcelona database?
No. The tool only allows for querying and reading data. It cannot modify, add, or delete any records in the city's system.
- 02
Do I need to know SQL to use this?
No. You can ask questions in plain English, and your agent will write the SQL for you.
- 03
Can your agent download the entire dataset as a file?
No. Your agent uses the tool to fetch specific subsets of data. It does not have a tool for bulk file downloads.
- 04
Is the data real-time?
Your agent accesses the data currently available in the Ayuntamiento de Barcelona CKAN datastore.
- 05
Can your agent create new datasets?
No. The capability is strictly limited to searching and querying existing public datasets.
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 ConnectTypeScript · 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.









