Content
# Seoul Public Data MCP Server Example
This is an MCP server example that provides various public data of Seoul using the Seoul Public Data API.
## Example List
- Seoul Subway Line Station Passenger Boarding/Alighting Information
- Seoul Cultural Event Information
## Configuration
### Seoul Public Data API Key Configuration
#### Seoul Subway Line Station Passenger Boarding/Alighting Information
Add the following {API Key} to the file `modules/KoreaSeoulCulturalEventInfo.ts`.
```typescript
import {
Tool,
} from "@modelcontextprotocol/sdk/types.js";
const API_URL = "http://openapi.seoul.go.kr:8088/{authKey}/json/culturalEventInfo/{StartIndex}/{EndIndex}";
const API_KEY = "{API Key}";
```
#### Seoul Cultural Event Information
Add the following {API Key} to the file `modules/KoreaSeoulSubwayStatus.ts`.
```typescript
import {
Tool,
} from "@modelcontextprotocol/sdk/types.js";
const API_URL = "http://openapi.seoul.go.kr:8088/{authKey}/json/culturalEventInfo/{StartIndex}/{EndIndex}";
const API_KEY = "{API Key}";
```
## Build
```bash
npm i; npm run build
```
#### Add MCP Configuration to Claude Desktop
Add the following to the `claude_desktop_config.json` file.
You must add {built path} to suit your needs.
```json
{
"mcpServers": {
"KoreaSeoulData": {
"command": "node",
"args": [
"{built path}/seoul_korea/dist/index.js"
]
}
}
}
```
## Usage Example
### Seoul Subway Line Station Passenger Boarding/Alighting Information

### Seoul Cultural Event Information
