MCP News Server
Allows publishing articles directly to a MySQL database.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP News Server
A Model Context Protocol (MCP) server written in Node.js / TypeScript that registers a publish_article tool. It enables AI coding assistants (like Antigravity or Claude Desktop) to publish search results, news, or articles directly onto your website database or REST API endpoint.
Features
Flexible Routing: Can publish directly to a MySQL database, send a POST request to a REST API, or save to a local JSON file (fallback for testing).
Automatic Slugs: Generates SEO-friendly URLs/slugs automatically from the article title.
Zod Schemas: Standard, type-safe request payload validation.
Model Context Protocol Compliant: Communicates over stdio transport.
Related MCP server: Dev Blog MCP Server
Installation & Setup
1. Clone & Build
Ensure you have Node.js (v18+) and npm installed:
# Clone the repository
git clone https://github.com/thilakace/mcp-news-server.git
cd mcp-news-server
# Install dependencies
npm install
# Compile TypeScript
npm run build2. Configure Environment Variables
Copy the .env.example file to .env:
cp .env.example .envOpen .env and fill in your details:
To insert into a database, complete the
DB_*parameters.To push via REST API, specify the
API_ENDPOINTandAPI_BEARER_TOKEN.If both are left empty, it runs in Testing Mode and saves articles to
local_articles.json.
Registering in your AI Client / IDE
To let your AI assistant use this tool, add the server configuration to your MCP settings.
In Gemini Antigravity (or Cline/Roo-Code/Windsurf)
Add the server configuration to your global or project mcp_config.json:
{
"mcpServers": {
"mcp-news-server": {
"command": "node",
"args": ["C:/Users/ThilagarajaS/.gemini/antigravity/scratch/mcp-news-server/build/index.js"],
"env": {
"DB_HOST": "localhost",
"DB_USER": "db_user",
"DB_PASSWORD": "YourStrongPassword123!",
"DB_NAME": "laravel_db"
}
}
}
}(Make sure to update the absolute path to point to your build/index.js file).
Tool API Reference
publish_article
Publishes a news article directly to your platform.
Parameters:
title(string, required): The headline/title of the news article.summary(string, required): A brief 1-2 sentence summary of the news.content(string, required): The complete body copy/text of the article.category(string, required): The news section/category (e.g. Local Festivals, Infrastructure, Sports).tags(array of strings, required): Related tags or keywords for SEO classification.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Publish blog posts, send newsletters and emails from Claude, Claude Code, Codex and ChatGPT.
AI-native news publishing: manage publications, write stories, upload media, and browse feeds.
Generate GEO/AEO-optimized articles and publish them to WordPress from your AI agent.
Publish web pages straight from your AI assistant and share them with a link.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to manage WordPress sites through natural conversation, supporting post creation, content updates, site queries, and draft-to-publish workflows via the WordPress REST API.9MIT
- FlicenseAqualityDmaintenanceEnables AI assistants to publish blog posts directly to Dev.to via the Model Context Protocol.11-
- AlicenseAqualityBmaintenanceEnables AI tools to research, write, and publish finished blog posts to Ghost and WordPress in the user's voice, supporting multiple author personas and destinations through natural language.142MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents to manage a blog directly from an IDE, including drafting, editing, publishing, scheduling, SEO optimization, and analytics tracking through natural language.7,964,013 npmBSD 3-Clause