Skip to main content

MCP server for Access Korean presidential speech records from the Presidential Archives

Project description

Presidential Speech Records MCP Server

Access Korean presidential speech records from the Presidential Archives

Overview

This MCP server provides access to the 대통령기록관 연설문 API from Korea's data.go.kr portal through the Model Context Protocol.

Installation

Via PyPI

pip install data-go-mcp.presidential-speeches

Via UV

uvx data-go-mcp.presidential-speeches

Configuration

Getting an API Key

  1. Visit data.go.kr
  2. Sign up for an account
  3. Search for "대통령기록관 연설문" API
  4. Apply for API access
  5. Get your service key from the API management page

Environment Setup

Set your API key as an environment variable:

export API_KEY="your-api-key-here"

Claude Desktop Configuration

Add to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "data-go-mcp.presidential-speeches": {
      "command": "uvx",
      "args": ["data-go-mcp.presidential-speeches@latest"],
      "env": {
        "API_KEY": "your-api-key-here"
      }
    }
  }
}

Available Tools

list_speeches

List presidential speeches from the archives.

Parameters:

  • page (int, optional): Page number (default: 1)
  • per_page (int, optional): Results per page (default: 10)
  • use_2023_version (bool, optional): Use 2023 version API (default: True)

Example Usage:

  • "List the latest presidential speeches"
  • "Show me 20 presidential speeches from page 2"

search_speeches

Search presidential speeches with various filters.

Parameters:

  • president (str, optional): Filter by president name
  • title (str, optional): Search by speech title keyword
  • year (int, optional): Filter by speech year
  • location (str, optional): Filter by speech location
  • page (int, optional): Page number (default: 1)
  • per_page (int, optional): Results per page (default: 10)

Example Usage:

  • "Search for speeches by 노무현"
  • "Find speeches about 통일 (unification)"
  • "Show speeches from 2020"
  • "Find speeches delivered at 청와대"

get_recent_speeches

Get recent presidential speeches.

Parameters:

  • president (str, optional): Filter by president name
  • limit (int, optional): Number of speeches to retrieve (default: 5)

Example Usage:

  • "Show me the 10 most recent presidential speeches"
  • "Get the latest speeches by 윤석열"

Response Format

Each speech record contains:

  • id: Speech identifier (구분번호)
  • president: President name (대통령)
  • title: Speech title (글제목)
  • year or date: Speech year or date (연설연도/연설일자)
  • source_url: Link to full text (원문보기)
  • location: Speech location (연설장소)

Development

Setup

# Clone the repository
git clone https://github.com/your-org/data-go-mcp-servers.git
cd data-go-mcp-servers/src/presidential-speeches

# Install dependencies
uv sync

Testing

# Run tests
uv run pytest tests/

# Run with coverage
uv run pytest tests/ --cov=data_go_mcp.presidential_speeches

Running Locally

# Set your API key
export API_KEY="your-api-key"

# Run the server
uv run python -m data_go_mcp.presidential_speeches.server

API Documentation

For detailed API documentation, visit: https://api.odcloud.kr/api/15084167/v1

License

Apache License 2.0

Contributing

Contributions are welcome! Please see the main repository for contribution guidelines.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

data_go_mcp_presidential_speeches-0.1.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file data_go_mcp_presidential_speeches-0.1.0.tar.gz.

File metadata

File hashes

Hashes for data_go_mcp_presidential_speeches-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6d2207218651a09bb6e2bb091a21ded9a89b36e94a0b3dfe241f4736044df148
MD5 65dc4193f0fe8160c5dff6437ef2f9a2
BLAKE2b-256 3b009b4434f5d96e88f4ee3abe58092403084ab55130cad8a2f30eb0c818b8e7

See more details on using hashes here.

File details

Details for the file data_go_mcp_presidential_speeches-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for data_go_mcp_presidential_speeches-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ff898eee4abeffea6262b1fbabe062499c817df7636491ff936448baff1f60b
MD5 1ac1d5fae07d5c1993804716241fec05
BLAKE2b-256 dfd0dc3c06f8dd86cb3a6d7bd1b748da0e09db076a0d60dd233fb6302238099d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page