BMLT MCP Server
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@BMLT MCP Server find NA meetings in San Francisco this Friday at 7pm"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
BMLT MCP Server
A Model Context Protocol (MCP) server that provides comprehensive access to BMLT (Basic Meeting List Tool) APIs for Narcotics Anonymous meetings data. Features intelligent geocoding, rate limiting, and caching for optimal performance.
π Overview
This MCP server exposes all BMLT Semantic API endpoints as tools, allowing AI assistants like Claude to query meeting data, formats, service bodies, changes, and more from any BMLT root server. Perfect for recovery-focused applications and AI assistants.
Related MCP server: bmlt-mcp-server
β¨ Features
π― Complete API Coverage: All 9 BMLT Semantic API endpoints
π Intelligent Geocoding: Automatic address-to-coordinates conversion using OpenStreetMap
β‘ Rate Limiting: Respectful API usage with automatic rate limiting (1 req/sec for geocoding)
π Smart Caching: 24-hour in-memory cache for geocoding results (up to 100 entries)
π Retry Logic: Exponential backoff for rate limiting and network errors
π Multiple Formats: JSON, JSONP, CSV, and TSML formats
π Type Safety: Full TypeScript implementation with comprehensive types
π‘οΈ Error Handling: Robust error handling with meaningful error messages
β Validation: Parameter validation and endpoint compatibility checking
βοΈ Flexible Configuration: Environment variable configuration
Available Tools
1. bmlt_search_meetings
Search for meetings with extensive filtering options.
Parameters:
format: Response format (json,jsonp,tsml)meeting_ids: Specific meeting IDs to include/excludeweekdays: Days of week (1=Sunday, 2=Monday, ..., 7=Saturday)venue_types: Venue types (1=In-person, 2=Virtual, 3=Hybrid)formats: Format IDs to include/excludeservices: Service body IDs to include/excluderecursive: Include child service bodiesSearchString: Text to search forStringSearchIsAnAddress: Treat search string as addresslat_val,long_val: Geographic coordinatesgeo_width,geo_width_km: Search radiusStartsAfterH,StartsAfterM: Time filteringpage_size,page_num: Paginationadvanced_published: Published status filtering (default=published only, 0=all meetings, -1=unpublished only)And many more...
Special Features:
Intelligent Address Geocoding: When using
StringSearchIsAnAddress=1, addresses are automatically geocoded to coordinates using OpenStreetMap's Nominatim service, avoiding BMLT server geocoding issuesRate-Limited Requests: Automatic 1.1-second intervals between geocoding requests to respect API limits
Smart Caching: Geocoding results are cached for 24 hours to improve performance
Fallback Handling: If geocoding fails, automatically falls back to text search
2. bmlt_get_formats
Retrieve available meeting formats.
Parameters:
format: Response format (json,jsonp)lang_enum: Language codeshow_all: Show all formats or just used onesformat_ids: Specific format IDs to filterkey_strings: Format key strings to filter by
3. bmlt_get_service_bodies
Get list of service bodies.
Parameters:
format: Response format (json,jsonp)services: Service body IDs to include/excluderecursive: Include child service bodiesparents: Include parent service bodies
4. bmlt_get_changes
Retrieve meeting changes within a date range.
Parameters:
format: Response format (json,jsonp)start_date: Start date (YYYY-MM-DD)end_date: End date (YYYY-MM-DD)meeting_id: Specific meeting IDservice_body_id: Service body ID
5. bmlt_get_field_keys
Get list of available field keys.
Parameters:
format: Response format (json,jsonp)
6. bmlt_get_field_values
Get specific field values for a given field key.
Parameters:
format: Response format (json,jsonp)meeting_key: Field key to get values for (required)specific_formats: Comma-separated format IDsall_formats: Include all formats
7. bmlt_get_naws_dump
Export meeting data in NAWS format (CSV only).
Parameters:
sb_id: Service body ID (required)
8. bmlt_get_server_info
Get server information including version and configuration.
Parameters:
format: Response format (json,jsonp)
9. bmlt_get_coverage_area
Get geographic coverage area information.
Parameters:
format: Response format (json,jsonp)
π¦ Installation
Prerequisites
Node.js 18.0.0 or later
npm or yarn
Install from npm
# Install globally
npm install -g bmlt-mcp-server
# Or install locally in your project
npm install bmlt-mcp-serverInstall from source
git clone https://github.com/bmlt-enabled/bmlt-mcp-server.git
cd bmlt-mcp-server
npm install
npm run build
npm install -g .Configuration
Environment Variables
BMLT_ROOT_SERVER_URL(required): The base URL of your BMLT root serverBMLT_TIMEOUT: Request timeout in milliseconds (default: 30000)BMLT_USER_AGENT: Custom user agent string
Example Configuration
export BMLT_ROOT_SERVER_URL=https://bmlt.example.org/main_server/
export BMLT_TIMEOUT=60000
export BMLT_USER_AGENT=MyApp-BMLT-MCP/1.0.0Usage
Running the Server
# Using environment variables
BMLT_ROOT_SERVER_URL=https://bmlt.example.org/main_server/ bmlt-mcp-server
# Or if installed from source
BMLT_ROOT_SERVER_URL=https://bmlt.example.org/main_server/ node dist/index.jsUsing with Claude Desktop
Add this to your Claude Desktop configuration:
{
"mcpServers": {
"bmlt": {
"command": "bmlt-mcp-server",
"env": {
"BMLT_ROOT_SERVER_URL": "https://your-bmlt-server.org/main_server/"
}
}
}
}Dev Example
{
"mcpServers": {
"bmlt-mcp-server": {
"command": "node",
"args": ["/PATH_TO_REPO/bmlt-mcp-server/dist/index.js"],
"env": {
"BMLT_ROOT_SERVER_URL": "https://your-bmlt-server.org/main_server/"
}
}
}
}Using with other MCP clients
The server follows the standard MCP protocol and can be used with any MCP-compatible client.
Examples
Search for Virtual Meetings on Weekends
// Tool call
{
"name": "bmlt_search_meetings",
"arguments": {
"venue_types": [2], // Virtual only
"weekdays": [1, 7], // Sunday and Saturday
"page_size": 10
}
}Get All Formats in German
// Tool call
{
"name": "bmlt_get_formats",
"arguments": {
"lang_enum": "de",
"show_all": 1
}
}Search Near Geographic Location
// Tool call
{
"name": "bmlt_search_meetings",
"arguments": {
"lat_val": 47.6062,
"long_val": -122.3321,
"geo_width_km": 10,
"sort_results_by_distance": 1
}
}Get Changes for Last Month
// Tool call
{
"name": "bmlt_get_changes",
"arguments": {
"start_date": "2024-01-01",
"end_date": "2024-01-31"
}
}Export NAWS Data
// Tool call
{
"name": "bmlt_get_naws_dump",
"arguments": {
"sb_id": 123
}
}Search for All Meetings (Published and Unpublished)
// Tool call
{
"name": "bmlt_search_meetings",
"arguments": {
"advanced_published": 0,
"venue_types": [2],
"page_size": 10
}
}Development
Setup
git clone <repository-url>
cd bmlt-mcp-server
npm installAvailable Scripts
npm run dev: Run in development mode with hot reloadnpm run build: Build for productionnpm run watch: Build and watch for changesnpm run lint: Run ESLintnpm run lint:fix: Fix ESLint issues./build.sh: Build script with helpful output
Project Structure
src/
βββ index.ts # Main server implementation
βββ client.ts # BMLT API client
βββ tools.ts # MCP tool definitions and handlers
βββ types.ts # TypeScript type definitionsAPI Reference
BMLT Semantic API
This server implements all endpoints from the BMLT Semantic API:
GetSearchResults: Meeting search with extensive filtering
GetFormats: Available meeting formats
GetServiceBodies: Service body hierarchy
GetChanges: Meeting change history
GetFieldKeys: Available database fields
GetFieldValues: Field value enumeration
GetNAWSDump: NAWS-compatible CSV export
GetServerInfo: Server configuration and capabilities
GetCoverageArea: Geographic coverage bounds
Format Support
JSON: Default format for most endpoints
JSONP: JSON with callback for cross-origin requests
CSV: For NAWS export only
TSML: The Semantic Meeting List format for GetSearchResults
Error Handling
The server provides comprehensive error handling:
Parameter validation errors
HTTP request failures
API-specific errors (missing required parameters, etc.)
Network timeouts and connectivity issues
Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests if applicable
Run linting and ensure builds pass
Submit a pull request
License
MIT License - see LICENSE file for details.
Support
Issues: Report bugs and request features on GitHub
Documentation: BMLT API documentation at https://semantic.bmlt.app
Community: BMLT community forums and Discord
Related Projects
Changelog
v1.0.0
Initial release
Complete BMLT Semantic API coverage
TypeScript implementation
Comprehensive error handling
Full parameter validation
Available Tools
9 toolsbmlt_get_changesC
Retrieve meeting changes within a date range
Inputs: format, end_date, meeting_id, start_date, +1 more.
bmlt_get_coverage_areaC
Get geographic coverage area information
Inputs: format.
bmlt_get_field_keysC
Get list of available field keys
Inputs: format.
bmlt_get_field_valuesC
Get specific field values for a given field key
Inputs: meeting_key (required), format, all_formats, specific_formats.
bmlt_get_formatsC
Retrieve available meeting formats from BMLT server
Inputs: format, show_all, lang_enum, format_ids, +1 more.
bmlt_get_naws_dumpC
Export meeting data in NAWS format (CSV)
Inputs: sb_id (required).
bmlt_get_server_infoC
Get server information including version and configuration
Inputs: format.
bmlt_get_service_bodiesC
Get list of service bodies from BMLT server
Inputs: format, parents, services, recursive.
bmlt_search_meetingsB
Search for meetings in the BMLT database with various filtering options including published status filtering. For location-based searches, you can use either address strings (which will be automatically geocoded) or specific lat/long coordinates for more reliable results.
Inputs: format, formats, lat_val, long_val, +19 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 9 tools
Each tool targets a distinct resource or operation: meeting search, formats, service bodies, change history, field metadata, export, server info, and coverage area. The field key/value pair is clearly separated by purpose, and no tools appear to duplicate the same action.
All tools use a consistent bmlt_ prefix followed by snake_case verb_noun naming, with bmlt_search_meetings as the only non-get verb but still following the same predictable pattern. The convention is clear throughout.
Nine tools is well-scoped for a read/query-focused BMLT server. Each tool covers a distinct facet of the meeting database or server metadata without obvious padding.
The surface covers core read operations well: meeting search, formats, service bodies, changes, field metadata, export, server info, and coverage area. Minor gaps exist, such as no explicit single-meeting lookup by ID and no write/administration operations if those are expected.
Maintenance
Related MCP Connectors
Routing, geocoding, places, matrix and map tools for location-aware AI workflows.
Enables AI assistants to retrieve event data and execute event management operations in Nunify.
Geocoding, routing, isochrones, traffic, weather, and place search for AI agents. 19 MCP tools.
Free web search, 130M+ business records, local search, weather and travel data for AI agents.
Related MCP Servers
- AlicenseBqualityAmaintenanceEnables AI assistants to search, validate, and edit OpenStreetMap data through natural language commands and built-in safety protections. It supports discovery of nearby amenities, geographic data exploration, and secure map editing via OAuth authentication.455MIT
- AlicenseAqualityDmaintenanceConnects MCP-compatible AI clients to BMLT root servers, enabling natural language queries for NA meeting data including search by location, day, format, and more.5MIT

bmlt-server-mcpofficial
FlicenseNot gradedqualityCmaintenanceEnables AI assistants to search and retrieve Narcotics Anonymous meeting information from the BMLT database, supporting queries by location, time, format, and service body.-- AlicenseAqualityCmaintenanceEnables LLMs to geocode and reverse geocode places, find nearby points of interest, search categories within an area, get turn-by-turn routing, suggest meeting points, and analyze neighborhoods, commutes, schools, EV charging, and parking through OpenStreetMap data services. It also serves place and map tile resources over stdio, SSE, or Streamable HTTP transports.12MIT