Provides access to top US headlines, article details, AI-powered summarization, and English-to-Korean translation through an MCP server.
Configuration
View docs{
"mcpServers": {
"ekfaktldk11-mcp-news-server": {
"command": "node",
"args": [
"c:\\Users\\ekfak\\git-repositories\\ai\\mcp-news-server\\dist\\index.js"
],
"env": {
"NEWS_API_KEY": "your_news_api_key",
"OPENAI_API_KEY": "your_openai_api_key"
}
}
}
}You set up the MCP News Server to fetch top headlines, inspect specific articles, generate concise summaries with AI, and translate English content into high-quality Korean. This server provides practical, single-purpose tools that you can call from any MCP client to automate news-related tasks.
You interact with the MCP News Server through an MCP client by calling its available tools. You can pull the top headlines, request detailed information for a specific article, generate a short AI-powered summary, or translate English text into Korean. You can combine these actions, for example by retrieving todayโs headlines and then translating the first article into Korean.
Prerequisites you need before starting are Node.js and npm (or your preferred Node environment). You also should have the necessary API keys for News API and OpenAI ready.
Step by step install and setup:
1) Install dependencies for the project
npm install2) Create your environment file from the example and fill in your API keys
cp .env.example .envOpen the .env file and set these keys:
NEWS_API_KEY=your_actual_news_api_key
OPENAI_API_KEY=your_actual_openai_api_key3) Build the project
npm run build4) Run in development or watch mode (optional)
npm run dev
```
or
```bash
npm run watchConfiguration for client integration can be added to the clientโs MCP setup. If you want to run the server locally through your MCP client, you can use the following example configuration to point to the local runtime.
{
"mcpServers": {
"mcp_news": {
"type": "stdio",
"command": "node",
"args": ["c:\\Users\\ekfak\\git-repositories\\ai\\mcp-news-server\\dist\\index.js"],
"env": {
"NEWS_API_KEY": "your_news_api_key",
"OPENAI_API_KEY": "your_openai_api_key"
}
}
}
}If you encounter issues, verify that your environment variables are correctly set in the .env file and that the API keys you provided are valid. Ensure you have built the project before starting the server. If the MCP client cannot detect the running server, restart the client after building and starting the server.
For development, you can start the server with npm run dev, which enables live updates, or use npm run watch for automatic rebuilds during development.
Fetches the top 10 US news headlines with optional category filtering (business, entertainment, general, health, science, sports, technology); returns title, source, and publication time.
Retrieves detailed information for a specific news article by its exact title; returns title, source, publication time, description, URL, and author.
Uses AI to summarize a news article text; accepts the article text and an optional maxLength (default 100 words); returns the summarized text.
Translates English news text into high-quality Korean.