os mcp
A Python-based MCP server that provides access to Ordnance Survey APIs, allowing querying of geographic data through a standardized protocol with features like collection management, feature search, and spatial filtering.
A Python-based MCP server that provides access to Ordnance Survey APIs, allowing querying of geographic data through a standardized protocol with features like collection management, feature search, and spatial filtering.
A Python-based MCP server that provides access to the Ordnance Survey APIs.
This service creates a bridge between MCP clients and the OS APIs, making it easy to query geographic data through a standardised protocol.
The service handles authentication, (basic) rate limiting, and provides a simplified interface to complex OS APIs.
api_service - Asynchronous HTTP client implementation for the OS APIs
Handles authentication, request formatting, and response processing
Provides a clean interface to the external API endpoints
mcp_service - Exposes OS APIs functionality as MCP tools
Converts API responses to MCP-compatible formats
OS_API_KEY
)Configure in your MCP host configuration file (e.g Claude Desktop):
{
"mcpServers": {
"os-ngd-api": {
"command": "/Users/username/.local/bin/uv",
"args": ["--directory", "src/", "run", "server.py"],
"env": {
"OS_API_KEY": "your_api_key_here"
}
}
}
}
This MCP service has only been tested with Claude Desktop.
The aim is to make this service work with various MCP hosts/clients, but this has not been tested yet.
When using with Claude Desktop:
All of this is a work in progress, but the following tools are available:
hello_world
- Test connectivitycheck_api_key
- Verify API key configurationlist_collections
- List available feature collectionsget_collection_info
- Get details about a specific collectionget_collection_queryables
- Get filterable properties for a collectionsearch_features
- Search features by various criteriaget_feature
- Retrieve a specific feature by IDget_linked_identifiers
- Find related identifiersget_bulk_features
- Retrieve multiple features in a single callget_bulk_linked_features
- Get linked features in bulkget_prompt_templates
- Get standard prompt templates for common operationsThis service provides pre-configured prompt templates to help you get started.
To access these templates ask Claude "show me available prompt templates"
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License.
This project does not have the endorsement of Ordnance Survey.