Content
aver Map Direction MCP Naver Map MCP(Model Context Provider) is a MCP server for get GEO data and direction data from Naver Map.
Running on the stdio MCP server, provide the following functionalities:
- `get-geo`: Get GEO data from Naver Map
- `get-direction`: Get direction data from Naver Map
# Running the Naver Map Direction MCP
### Requirements
- Node.js 18.x or higher
### Installation
```bash
npm run build
```
### MCP Configuration
Create a `mcp.json` file in the root directory of the project with the following content:
```json
{
"mcpServers": {
"naver-map-direction-mcp": {
"command": "node",
"args": [
"<project-path>/naver-map-direction-mcp/dist/server.js"
],
"env": {
"NAVER_MAP_DIRECTION_API_URL": "<NAVER_MAP_DIRECTION_API_URL>",
"NAVER_MAP_GEO_API_URL": "<NAVER_MAP_GEO_API_URL>",
"NAVER_MAP_CLIENT_ID": "<NAVER_MAP_CLIENT_ID>",
"NAVER_MAP_CLIENT_SECRET": "<NAVER_MAP_CLIENT_SECRET>"
}
}
}
}
Running the MCP Server on Localhost
```bash
npm run start
```
#### Get Geo data from Naver Map MCP
- Request
```json
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get-geo","arguments":{"address":"Seocho-gu, Gangnam-daero 97"}}}
```
- Response
```json
{"result":{"content":[{"type":"text","text":"Latitude: 127.0132509, Longitude: 37.4856729"}]},"jsonrpc":"2.0","id":1}
```
#### Get Direction data from Naver Map MCP:
- Request:
```json
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get-direction","arguments":{"start":"127.1054328,37.3595963","goal":"127.0536603,37.5063712"}}}
```
- Response
```json
{"result":{"content":[{"type":"text","text":"Guide of get direction:\nTurn around at Jeongja 1st intersection\nTurn right towards 'Seoul, Pangyo IC'\nDrive on the right road towards 'Seoul, Suseo, Seongnam City Hall & Seongnam City Council'\nEnter the urban highway towards 'Bundang Suseo-ro'\nEnter the underground road at Beolmal\nEnter the underground road at Suseo\nTake the right urban highway exit towards 'Gimpo Airport, Gangil IC, Jamsil Bridge'\nTurn left towards 'Gangil IC, Jamsil Bridge'\nAt Bongun Bridge, turn right towards 'Olympic-ro (Gimpo Airport, Gangil IC), COEX, Samseong Station'\nAt the Sports Complex, turn right towards 'Jangji-dong, Garak Market'\nAt the Sports Complex, turn right towards 'Samseong Station'\nTurn right towards 'Teheran-ro 69-gil'\nTurn right towards 'Samseong-ro 91-gil'\nDestination"}]},"jsonrpc":"2.0","id":1}
```
### Future features
-