# write_raster
Write a numpy array to a raster file using metadata from a reference raster.
**Arguments:**
- `array` (list): 2D or 3D list (or numpy array) of raster values.
- `reference_raster` (str): Path to a raster whose metadata will be copied.
- `output_path` (str): Path to save the new raster.
- `dtype` (str, optional): Data type (e.g., 'float32', 'uint8').
**Returns:**
- Dictionary with status, message, and output path.
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mahdin75/gis-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server