How to Use the Ayuntamiento de Barcelona (CKAN) MCP in Windsurf
Query Barcelona's live urban and environmental data directly within Windsurf using Cascade's autonomous multi-step planning.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Ayuntamiento de Barcelona (CKAN) MCP to Windsurf
Create your Vinkius account to connect Ayuntamiento de Barcelona (CKAN) to Windsurf and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Run SQL queries on public data inside Windsurf
Cascade can write a raw SQL query and hit the Barcelona Open Data API in one shot. It uses `bcn_datastore_search_sql` to target specific public CSV resources, pulling raw records without making you click through a browser. You just ask for the data you want. The agent handles the database dialect, formats the query with double quotes around the resource ID, and displays the exact tables you need to build your local visualizations.
Auto-discover Barcelona datasets with Cascade
Stop guessing which dataset contains the environmental metrics you need. Cascade chains `bcn_package_list` and `bcn_package_search` to find relevant catalogues, then inspects them automatically. It doesn't ask you for permission at every step. Grabbing the dataset name, the agent runs `bcn_package_show` to inspect the metadata and extracts the exact resource ID for your analysis.
Chain dataset searches to feed your Windsurf code
When you want to build a feature around Barcelona's public transit or housing stats, Cascade uses this MCP Server to fetch the live schema. It fires `bcn_resource_show` to inspect the structure of the target CSV file. Once it knows the column names, it uses `bcn_datastore_search` to pull sample records. You get clean, real-world mock data injected directly into your workspace to write accurate code.
Set up Ayuntamiento de Barcelona (CKAN) MCP in Windsurf
Prerequisites
- Windsurf IDE installed (macOS, Windows, or Linux)
- Active Vinkius subscription with a valid endpoint token
- 1
Open MCP configuration
Click the Cascade assistant icon in the sidebar, then click the hammer icon (🔨) at the top of the panel. Select "Configure" to open
~/.codeium/windsurf/mcp_config.json. - 2
Add the Ayuntamiento de Barcelona (CKAN) MCP
Paste the JSON snippet shown on the right into the
mcpServersobject. Replace[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. - 3
Refresh MCPs
Go back to the hammer icon (🔨) in Cascade and click "Refresh". Windsurf will detect the new server. No full restart is needed — the connection is hot-reloaded.
- 4
Verify in Cascade
Start a new Cascade conversation and ask something like "Show my Ayuntamiento de Barcelona (CKAN) payment history." If connected, Cascade will call the Ayuntamiento de Barcelona (CKAN) tools directly. You will see a green dot next to the server name in the MCP panel.
{
"mcpServers": {
"ayuntamiento-de-barcelona-ckan-mcp": {
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
}
}
} Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Open Data BCN. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Ayuntamiento de Barcelona (CKAN) MCP in Windsurf
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Ayuntamiento de Barcelona (CKAN) MCP today
We host it, we monitor it, we maintain it. You just paste one token.