Baidu Maps

v1.0.0Search & Data Extractionstable

Baidu Map MCP Server

lbsmapmapsmcpmcp-server
Share:
427
Stars
0
Downloads
0
Weekly
0/5

What is Baidu Maps?

Baidu Maps is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to baidu map mcp server

Baidu Map MCP Server

This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Baidu Map MCP Server

Use Cases

Search locations on Baidu Map and get coordinates. Find businesses and places in China. Access mapping and location-based services.
baidu-maps

Maintainer

LicenseMIT License
Languagepython
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx baidumap

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Baidu Maps

The Baidu Maps MCP Server connects AI assistants to Baidu's location-based services platform, giving them access to geocoding, reverse geocoding, place-of-interest search, multi-modal route planning, real-time traffic data, weather queries, and IP-based location detection. It is the primary mapping solution for AI applications targeting mainland China, where Google Maps is unavailable, and is used by developers building travel assistants, logistics optimizers, and location-aware chatbots that need accurate Chinese addresses, POI data, and driving or transit routes.

Prerequisites

  • A Baidu Maps Open Platform developer account and a server-side API key obtained from https://lbsyun.baidu.com/apiconsole/key
  • Python 3.8+ (for the Python package) or Node.js 16+ (for the npm package)
  • An MCP-compatible client such as Claude Desktop or Claude Code
  • The MCP (SSE) service enabled on your Baidu Maps API key for best performance
1

Create a Baidu Maps API key

Log in to the Baidu Maps Open Platform console at https://lbsyun.baidu.com/apiconsole/key, create a new application, and generate a server-side API key. Enable the MCP (SSE) service type on the key for optimal compatibility.

2

Install the server package

Install either the Python or Node.js package depending on your preference. Both expose the same MCP tools.

# Python
pip install mcp-server-baidu-maps

# Node.js
npm install @baidumap/mcp-server-baidu-map
3

Configure Claude Desktop with the Python package

Add the server to your claude_desktop_config.json. Pass your API key via the BAIDU_MAPS_API_KEY environment variable.

{
  "mcpServers": {
    "baidu-maps": {
      "command": "python",
      "args": ["-m", "mcp_server_baidu_maps"],
      "env": {
        "BAIDU_MAPS_API_KEY": "YOUR_BAIDU_MAPS_API_KEY"
      }
    }
  }
}
4

Configure Claude Desktop with the Node.js package

If you prefer the npm package, use the npx command and the BAIDU_MAP_API_KEY environment variable name (note: no 'S' at the end).

{
  "mcpServers": {
    "baidu-maps": {
      "command": "npx",
      "args": ["-y", "@baidumap/mcp-server-baidu-map"],
      "env": {
        "BAIDU_MAP_API_KEY": "YOUR_BAIDU_MAPS_API_KEY"
      }
    }
  }
}
5

Verify available tools

After restarting your MCP client, ask the AI to list the Baidu Maps tools. You should see tools for geocoding, reverse geocoding, POI search, route planning (driving, walking, transit), weather queries, IP location, and traffic data.

Baidu Maps Examples

Client configuration

Claude Desktop configuration using the Python mcp-server-baidu-maps package with an API key.

{
  "mcpServers": {
    "baidu-maps": {
      "command": "python",
      "args": ["-m", "mcp_server_baidu_maps"],
      "env": {
        "BAIDU_MAPS_API_KEY": "YOUR_BAIDU_MAPS_API_KEY"
      }
    }
  }
}

Prompts to try

Location-based queries and planning tasks that the Baidu Maps tools can handle.

- "What is the latitude and longitude of the Forbidden City in Beijing?"
- "Find the top 5 Sichuan restaurants near Chengdu Tianfu Square"
- "Plan a driving route from Shanghai Pudong Airport to the Bund and show estimated travel time"
- "What is the current weather in Shenzhen?"
- "What is my approximate location based on this IP address: 111.206.145.41?"

Troubleshooting Baidu Maps

API returns 'ak error' or authentication failure

Double-check that you are using a server-side API key, not a browser key. In the Baidu Maps console, the key type must be 'Server' (服务端). Also verify the correct environment variable name: BAIDU_MAPS_API_KEY for Python, BAIDU_MAP_API_KEY for Node.js.

Route planning returns no results for a valid address

Baidu Maps coordinates use the BD-09 coordinate system, which differs from WGS-84 (GPS) and GCJ-02 (Google China). Use the geocoding tool to convert addresses to BD-09 coordinates before passing them to route planning tools.

POI search returns results outside the expected city

Specify the city parameter explicitly in your search request. Without a city constraint, the API may return nationwide results ranked by relevance rather than proximity.

Frequently Asked Questions about Baidu Maps

What is Baidu Maps?

Baidu Maps is a Model Context Protocol (MCP) server that baidu map mcp server It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Baidu Maps?

Follow the installation instructions on the Baidu Maps GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Baidu Maps?

Baidu Maps works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Baidu Maps free to use?

Yes, Baidu Maps is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Search & Data Extraction MCP Servers

Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "baidumap": { "command": "npx", "args": ["-y", "baidumap"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Baidu Maps?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides