Amap मैप्स

के द्वारा बनाया गयाamap-mapsamap-maps

Amap Maps एक सर्वर है जो किसी भी MCP प्रोटोकॉल क्लाइंट का समर्थन करता है, जिससे उपयोगकर्ता विभिन्न स्थान-आधारित सेवाओं के लिए Amap Maps MCP सर्वर का आसानी से उपयोग कर सकते हैं।

सारांश

Amap मैप्स क्या है?

Amap मैप्स एक सर्वर है जो किसी भी MCP प्रोटोकॉल क्लाइंट का समर्थन करता है, जिससे उपयोगकर्ता विभिन्न स्थान-आधारित सेवाओं के लिए Amap मैप्स MCP सर्वर का आसानी से उपयोग कर सकते हैं।

Amap मैप्स का उपयोग कैसे करें?

Amap मैप्स का उपयोग करने के लिए, इसे एक संगत क्लाइंट जैसे Cursor में कॉन्फ़िगर करें, अपने API कुंजी को कॉपी करें और दस्तावेज़ में निर्दिष्ट सर्वर कमांड सेट करें।

Amap मैप्स की मुख्य विशेषताएँ

  • भौगोलिक कोडिंग, मौसम, और दूरी मापन सहित कई स्थान सेवाओं का समर्थन करता है।
  • चलने, ड्राइविंग, और सार्वजनिक परिवहन सहित विभिन्न परिवहन मोड के लिए APIs प्रदान करता है।
  • कीवर्ड या स्थान के आधार पर रुचि के बिंदुओं (POIs) की विस्तृत खोज की अनुमति देता है।

Amap मैप्स के उपयोग के मामले

  1. भौगोलिक समन्वय को प्रशासनिक पते में परिवर्तित करना।
  2. साइकिल चलाने, चलने, या ड्राइविंग के लिए मार्ग योजना बनाना।
  3. उपयोगकर्ता-परिभाषित मानदंडों के आधार पर निकटवर्ती रुचि के बिंदुओं की खोज करना।

Amap मैप्स से अक्सर पूछे जाने वाले प्रश्न

  • Amap मैप्स कौन-कौन सी स्थान सेवाएँ प्रदान करता है?

    Amap मैप्स भौगोलिक कोडिंग, मौसम जानकारी, दूरी मापन, और विभिन्न परिवहन मोड के लिए मार्ग योजना प्रदान करता है।

  • क्या मेरी अनुरोधों की संख्या पर कोई सीमा है?

    उपयोग की सीमाएँ API कुंजी और उपयोग की जा रही विशिष्ट सेवा पर निर्भर करती हैं। कृपया विवरण के लिए Amap दस्तावेज़ देखें।

  • मैं API कुंजी कैसे प्राप्त कर सकता हूँ?

    आप Amap डेवलपर प्लेटफ़ॉर्म पर एक प्रोजेक्ट बनाकर API कुंजी प्राप्त कर सकते हैं।

विवरण

Clients supporting the MCP protocol (e.g., Cursor, Claude, Cline) can easily use the Amap Maps MCP server. Currently, it supports MCP (SSE) and Node.js I/O connection methods.

1. Accessing MCP Service via SSE on the Cursor Platform

1.1 Install Cursor

It is recommended to use the latest version of the Cursor client. Install Cursor.

Note: Please log in to your Cursor personal account to use large model features.

1.2 Configure SSE Connection in Cursor Settings

Cursor Settings

1.3 Add a New MCP Server Configuration

Obtain a key.

{
  "mcpServers": {
    "amap-amap-sse": {
      "url": "https://mcp.amap.com/sse?key=<your_key>"
    }
  }
}

1.4 Check MCP Service Tool Status in Cursor Settings

MCP Service Status

Tip: If a "Client closed" error occurs, click the Enabled button to resolve it, as shown below:

Resolve Client Closed

1.5 Select a Large Model for Better Experience

It is recommended to choose claude-3.7-sonnet.

Model Selection

1.6 Model Interaction Mode: Select Agent Mode

Press CTRL/CMD + L to open the dialog box on the right side of the editor.

Agent Mode

1.7 Start Using

Learn how to use Amap MCP for planning scheme design and map visualization scenarios. Refer to Application Cases.

2. Accessing MCP Service via SSE with Spring AI

2.1 Configuration

spring.ai.mcp.client.connection-timeout=60s
spring.ai.mcp.client.type=ASYNC
# Note: Do not include the Amap SSE connection in the configuration file

2.2 Add Configuration Class

@Configuration
public class McpConfig {

    @Bean
    public List<NamedClientMcpTransport> mcpClientTransport() {
        McpClientTransport transport = HttpClientSseClientTransport
                .builder("https://mcp.amap.com")
                .sseEndpoint("/sse?key=<your_key>")
                .objectMapper(new ObjectMapper())
                .build();

        return Collections.singletonList(new NamedClientMcpTransport("amap", transport));
    }
}

2.3 Usage

@Autowired
List<McpAsyncClient> mcpAsyncClients;

@RequestMapping("/test")
public Mono<McpSchema.CallToolResult> test() {
    var mcpClient = mcpAsyncClients.get(0);
    
    return mcpClient.listTools()
            .flatMap(tools -> {
                logger.info("tools: {}", tools);
                
                return mcpClient.callTool(
                        new McpSchema.CallToolRequest(
                                "maps_weather",
                                Map.of("city", "Beijing")
                        )
                );
            });
}

2.4 Start Using

Learn how to use Amap MCP for planning scheme design and map visualization scenarios. Refer to Application Cases.

3. Accessing MCP Service via Node.js I/O on the Cursor Platform

3.1 Install Node.js

Download the Node.js application suitable for your operating system.

Tip:

  1. Ensure Node.js is installed and check that the local Node.js version is v22.14.0 or higher. It is recommended to use v22.14.0 or above for optimal compatibility and performance.
  2. Verify that the npm registry is set to the default source (https://registry.npmjs.org/).

Check command:

npm config get registry

3.2 Install Cursor

It is recommended to use the latest version of the Cursor client. Install Cursor.

Note: Please log in to your Cursor personal account to use large model features.

3.3 Configure MCP Server in Cursor Settings

Cursor MCP Settings

3.4 Add a New MCP Server Configuration

Obtain a key.

{
  "mcpServers": {
    "amap-maps": {
      "command": "npx",
      "args": ["-y", "@amap/amap-maps-mcp-server"],
      "env": {
        "AMAP_MAPS_API_KEY": "<your_key>"
      }
    }
  }
}

Configuration

3.5 Check MCP Service Tool Status in Cursor Settings

MCP Tool Status

The MCP Server — amap-maps Tools status is normal and available, as shown above.

Tip: If a "Client closed" error occurs, click the Enabled button to resolve it, as shown below:

Resolve Client Closed

3.6 Select a Large Model for Better Experience

It is recommended to choose claude-3.7 unitàsonnet.

Model Selection

3.7 Model Interaction Mode: Select Agent Mode

Press CTRL/CMD + L to open the dialog box on the right side of the editor.

Agent Mode

3.8 Start Using

Learn how to use Amap MCP for planning scheme design and map visualization scenarios. Refer to Application Cases.

सर्वर कॉन्फ़िगरेशन

{
  "mcpServers": {
    "amap-maps": {
      "command": "npx",
      "args": [
        "-y",
        "@amap/amap-maps-mcp-server"
      ],
      "env": {
        "AMAP_MAPS_API_KEY": "api_key"
      }
    }
  }
}

परियोजना जानकारी

लेखक
amap-maps
निर्मित
Jun 22, 2025
सितारा
-
भाषा
JavaScript
टैग

Amap मैप्स विकल्प

कुछ विकल्पों के लिए Amap मैप्स जिनकी आपको आवश्यकता हो सकती है, हम आपको श्रेणी के अनुसार साइट प्रदान करते हैं।

Baidu Maps का मुख्य API अब पूरी तरह से MCP प्रोटोकॉल के साथ संगत है, जिससे यह चीन में MCP प्रोटोकॉल के साथ संगत होने वाला पहला मानचित्र सेवा प्रदाता बन गया है।

और देखें >>