dsfl-codemode-gateway
Mounts the CBS wijken en buurten (districts and neighbourhoods) MCP server, served via the BAG ldproxy API, under the wijkenbuurten_ prefix. Its tools can be discovered with get_schema and called from Python code run by execute in the gateway's sandbox, so an agent can query and combine CBS district/neighbourhood data with other datasets (e.g. via the optional geo_ functions for coordinate transformation, spatial joins, grids and zonal statistics) while only the code's return value reaches the model's context.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
dsfl-codemode-gateway
A code-mode MCP gateway built with FastMCP 4.2.2. It puts code mode in front of three existing MCP servers:
BGT, at
bag.ldproxy.netCBS wijken en buurten, at
bag.ldproxy.netsubsurface models
The client sees three tools: search, get_schema and execute. The model writes Python that calls the upstream tools inside a sandbox (Monty). Only what that code returns reaches the model's context.
This was built for the AI-ready DSFL tests, to try "an agent with server-side code execution" as an execution environment.
What's here
File | What it is |
| The gateway. Each upstream server is mounted under its own prefix ( |
| Optional generic geo functions, mounted under |
| Starts or stops one gateway, found by its port. |
| Smoke tests against a running gateway. |
The geo functions in geo.py cover:
coordinate transformation with PROJ, using RDNAPTRANS for RD New
measures in a metric CRS
spatial joins and relations
overlay
grid cells over polygons
zonal statistics
fetching every page of a collection tool
simplifying geometry
Related MCP server: mcp-code-mode
Run
You need uv and Python 3.14.
uv sync
./gw.sh start 18090 # plain gateway on http://127.0.0.1:18090/mcp
./gw.sh start 18091 geo # with the geo_ functions
uv run python probe.py http://127.0.0.1:18090/mcp
./gw.sh stop 18090Environment variable | Default | Meaning |
|
| Port to serve on; the gateway listens on 127.0.0.1 only. |
|
| The subsurface-models MCP server. |
| unset | Set to |
Each execute program may make up to 10,000 tool calls and is stopped after 280 seconds of wall-clock time. Nothing is kept between execute calls.
The gateway needs no credentials: the upstream servers are public.
License
MIT, see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Sandbox workspace tools: search, file read, DB queries, integrations. Returns synthetic data.
Agent-first tool search. Start with search_tools({job: "your task in plain words"}); free, no key.
Web search, point-in-time crypto market data, verified strategy track records and 160+ agent tools.
Beta code sandbox for agents. Run Python or JavaScript with no network and a 30 s timeout.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables execution of code in a sandbox environment with integrated web search capabilities. Provides a basic framework for running code safely, primarily designed for AI agents and research applications.13-
- FlicenseNot gradedqualityCmaintenanceEnables safe execution of Python code with AI assistance and integration with Model Context Protocol tools.1-
- FlicenseNot gradedqualityNot gradedmaintenanceEnables LLMs to interact with Python environments, execute code or scripts, manage packages, and read/write files within an isolated working directory.-
- FlicenseNot gradedqualityAmaintenanceEnables LLMs to inspect and use Python environments, execute code or scripts, manage installed packages, and read or write files within an isolated working directory.-