MCP News Server
Allows publishing articles directly to a MySQL database.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP News ServerPublish an article about the new park opening in downtown"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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: ABOVO 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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.Last updated9MIT
- Alicense-qualityDmaintenanceSimple and free publishing of content on the web for AI AgentsLast updated10,171MIT
- Flicense-qualityDmaintenanceEnables AI assistants to search news articles, get top headlines, and browse sources via the NewsAPI.org service.Last updated
- Alicense-qualityDmaintenanceEnables AI assistants to interact with WordPress blog systems for automated content management and publishing via the WordPress REST API.Last updated361MIT
Related MCP Connectors
Publish Markdown or HTML to a shareable link from your AI assistant. OAuth, no API keys.
Publish web pages straight from your AI assistant and share them with a link.
Publish AI-generated HTML & Markdown to a hosted, shareable URL via MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/thilakace/mcp-news-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server