{"id":7416,"date":"2026-05-12T15:09:17","date_gmt":"2026-05-12T09:39:17","guid":{"rendered":"https:\/\/newsdata.io\/blog\/?p=7416"},"modified":"2026-05-12T15:20:11","modified_gmt":"2026-05-12T09:50:11","slug":"news-api-mcp-server","status":"publish","type":"post","link":"https:\/\/newsdata.io\/blog\/news-api-mcp-server\/","title":{"rendered":"How to Use NewsData.io with AI Assistants via MCP Server?"},"content":{"rendered":"[vc_row type=&#8221;in_container&#8221; full_screen_row_position=&#8221;middle&#8221; column_margin=&#8221;default&#8221; column_direction=&#8221;default&#8221; column_direction_tablet=&#8221;default&#8221; column_direction_phone=&#8221;default&#8221; scene_position=&#8221;center&#8221; text_color=&#8221;dark&#8221; text_align=&#8221;left&#8221; row_border_radius=&#8221;none&#8221; row_border_radius_applies=&#8221;bg&#8221; overflow=&#8221;visible&#8221; overlay_strength=&#8221;0.3&#8243; gradient_direction=&#8221;left_to_right&#8221; shape_divider_position=&#8221;bottom&#8221; bg_image_animation=&#8221;none&#8221;][vc_column column_padding=&#8221;no-extra-padding&#8221; column_padding_tablet=&#8221;inherit&#8221; column_padding_phone=&#8221;inherit&#8221; column_padding_position=&#8221;all&#8221; column_element_direction_desktop=&#8221;default&#8221; column_element_spacing=&#8221;default&#8221; desktop_text_alignment=&#8221;default&#8221; tablet_text_alignment=&#8221;default&#8221; phone_text_alignment=&#8221;default&#8221; background_color_opacity=&#8221;1&#8243; background_hover_color_opacity=&#8221;1&#8243; column_backdrop_filter=&#8221;none&#8221; column_shadow=&#8221;none&#8221; column_border_radius=&#8221;none&#8221; column_link_target=&#8221;_self&#8221; column_position=&#8221;default&#8221; gradient_direction=&#8221;left_to_right&#8221; overlay_strength=&#8221;0.3&#8243; width=&#8221;1\/4&#8243; tablet_width_inherit=&#8221;default&#8221; animation_type=&#8221;default&#8221; bg_image_animation=&#8221;none&#8221; border_type=&#8221;simple&#8221; column_border_width=&#8221;none&#8221; column_border_style=&#8221;solid&#8221; column_padding_type=&#8221;default&#8221; gradient_type=&#8221;default&#8221; offset=&#8221;vc_hidden-sm vc_hidden-xs&#8221;][\/vc_column][vc_column column_padding=&#8221;no-extra-padding&#8221; column_padding_tablet=&#8221;inherit&#8221; column_padding_phone=&#8221;inherit&#8221; column_padding_position=&#8221;all&#8221; column_element_direction_desktop=&#8221;default&#8221; column_element_spacing=&#8221;default&#8221; desktop_text_alignment=&#8221;default&#8221; tablet_text_alignment=&#8221;default&#8221; phone_text_alignment=&#8221;default&#8221; background_color_opacity=&#8221;1&#8243; background_hover_color_opacity=&#8221;1&#8243; column_backdrop_filter=&#8221;none&#8221; column_shadow=&#8221;none&#8221; column_border_radius=&#8221;none&#8221; column_link_target=&#8221;_self&#8221; column_position=&#8221;default&#8221; el_class=&#8221;text_block_wrapper&#8221; gradient_direction=&#8221;left_to_right&#8221; overlay_strength=&#8221;0.3&#8243; width=&#8221;3\/4&#8243; tablet_width_inherit=&#8221;default&#8221; animation_type=&#8221;default&#8221; bg_image_animation=&#8221;none&#8221; border_type=&#8221;simple&#8221; column_border_width=&#8221;none&#8221; column_border_style=&#8221;solid&#8221; column_padding_type=&#8221;default&#8221; gradient_type=&#8221;default&#8221; offset=&#8221;vc_col-lg-9 vc_col-md-12&#8243;][image_with_animation image_url=&#8221;7421&#8243; image_size=&#8221;full&#8221; animation_type=&#8221;entrance&#8221; animation=&#8221;None&#8221; animation_movement_type=&#8221;transform_y&#8221; hover_animation=&#8221;none&#8221; alignment=&#8221;&#8221; border_radius=&#8221;none&#8221; box_shadow=&#8221;none&#8221; image_loading=&#8221;default&#8221; max_width=&#8221;100%&#8221; max_width_mobile=&#8221;default&#8221;][vc_column_text]Real-time news is only as powerful as how quickly you can work with it. Writing custom scripts and manually handling API responses for integrating live news data into your AI-powered workflows is long outdated. With the <a href=\"http:\/\/newsdata.io\">Newsdata.io<\/a> MCP Server, that barrier is gone.<\/p>\n<p>This guide walks you through everything: what MCP is, how to install and configure the server, how to connect it to popular AI editors and assistants, and how to make your first tool calls.[\/vc_column_text][vc_column_text]\n<h2><b>What is MCP and Why Does it Matter?<\/b><\/h2>\n<p>Model Context Protocol (MCP) is an open protocol designed to give AI models structured, safe access to external tools and data. Instead of copy-pasting API responses into a chat window, MCP lets an AI client call a tool directly and get back structured data it can work with.<\/p>\n<p>In simple terms, it can be considered a universal plugin system for AI assistants. With the NewsData.io MCP server, your AI client can:<\/p>\n<ul>\n<li>Fetch the latest breaking news on any topic,<\/li>\n<li>Pull historical news for research or analysis,<\/li>\n<li>Query cryptocurrency or financial market coverage,<\/li>\n<li>Discover available news sources by country, language, or category.<\/li>\n<\/ul>\n<p>All of this happens within the flow of your conversation or coding session &#8211; no extra scripts, no manual API calls.[\/vc_column_text][vc_column_text]\n<h2><b>Prerequisites<\/b><\/h2>\n<p>Before you begin, make sure you have the following:<\/p>\n<ul>\n<li>A NewsData.io API key \u2014<a href=\"https:\/\/newsdata.io\/register\"> register here<\/a> to get one. A free plan is sufficient for getting started.<\/li>\n<li>Python 3.10+ is installed on your system.<\/li>\n<li>uv \u2014 a fast Python package manager. Install it with:<\/li>\n<\/ul>\n<p><code>curl -LsSf https:\/\/astral.sh\/uv\/install.sh | sh<\/code><\/p>\n<ul>\n<li>Git, to clone the repository.<\/li>\n<\/ul>\n[\/vc_column_text][vc_column_text]\n<h2><b>Available Tools<\/b><\/h2>\n<p>The NewsData.io MCP server exposes five tools that map directly to the NewsData.io API endpoints:<\/p>\n\n<table id=\"tablepress-58\" class=\"tablepress tablepress-id-58 tablepress-responsive\">\n<thead>\n<tr class=\"row-1 odd\">\n\t<th class=\"column-1\"><div style=\"text-align:center\"><br \/>\n<strong>Tool<\/strong><br \/>\n<\/div><\/th><th class=\"column-2\"><div style=\"text-align:center\"><br \/>\n<strong>Endpoint<\/strong><br \/>\n<\/div><\/th><th class=\"column-3\"><div style=\"text-align:center\"><br \/>\n<strong>Description<\/strong><br \/>\n<\/div><\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-hover\">\n<tr class=\"row-2 even\">\n\t<td class=\"column-1\"><code>get_latest_news<\/code><\/td><td class=\"column-2\"><code>\/api\/1\/latest<\/code><\/td><td class=\"column-3\">Breaking and recent news from the past 48 hours<\/td>\n<\/tr>\n<tr class=\"row-3 odd\">\n\t<td class=\"column-1\"><code>get_archive_news<\/code><\/td><td class=\"column-2\"><code>\/api\/1\/archive<\/code><\/td><td class=\"column-3\">Historical news with from_date \/ to_date filters<\/td>\n<\/tr>\n<tr class=\"row-4 even\">\n\t<td class=\"column-1\"><code>get_crypto_news<\/code><\/td><td class=\"column-2\"><code>\/api\/1\/crypto<\/code><\/td><td class=\"column-3\">Cryptocurrency and blockchain-focused coverage<\/td>\n<\/tr>\n<tr class=\"row-5 odd\">\n\t<td class=\"column-1\"><code>get_market_news<\/code><\/td><td class=\"column-2\"><code>\/api\/1\/market<\/code><\/td><td class=\"column-3\">Stock, financial, and market-related news<\/td>\n<\/tr>\n<tr class=\"row-6 even\">\n\t<td class=\"column-1\"><code>get_news_sources<\/code><\/td><td class=\"column-2\"><code>\/api\/1\/sources<\/code><\/td><td class=\"column-3\">Source discovery by country, category, or language<\/td>\n<\/tr>\n<tr class=\"row-7 odd\">\n\t<td class=\"column-1\"><code>get_news_counts<\/code><\/td><td class=\"column-2\"><code>\/api\/1\/count<\/code><\/td><td class=\"column-3\">Aggregate article counts over a date range (hour\/day buckets or single all total)<\/td>\n<\/tr>\n<tr class=\"row-8 even\">\n\t<td class=\"column-1\"><code>get_crypto_counts<\/code><\/td><td class=\"column-2\"><code>\/api\/1\/crypto\/count<\/code><\/td><td class=\"column-3\">Aggregate crypto article counts over a date range<\/td>\n<\/tr>\n<tr class=\"row-9 odd\">\n\t<td class=\"column-1\"><code>get_market_counts<\/code><\/td><td class=\"column-2\"><code>\/api\/1\/market\/count<\/code><\/td><td class=\"column-3\">Aggregate market article counts over a date range<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-58 from cache -->\n<p>Each tool accepts the same rich set of query parameters supported by Newsdata.io API &#8211; keywords, countries, languages, categories, sentiments, and more.[\/vc_column_text][vc_column_text]\n<h2><b>Installation\u00a0<\/b><\/h2>\n<h3><b>Step 1: Clone the Repository<\/b><\/h3>\n<p><code>git clone https:\/\/github.com\/newsdataapi\/newsdata.io-mcp.git<br \/>\ncd newsdata.io-mcp<br \/>\nuv sync<\/code><\/p>\n<p>The <em><strong>uv<\/strong><\/em> sync command installs all dependencies from the project&#8217;s <em><strong>pyproject.toml<\/strong><\/em>.<\/p>\n<h3><b>Step 2: Configure your API Key<\/b><\/h3>\n<p>Create a <strong><em>.env<\/em><\/strong> file in the project root:<\/p>\n<p><code>NEWSDATA_API_KEY=your_newsdata_api_key<br \/>\nREQUEST_TIMEOUT=30<\/code><\/p>\n<ul>\n<li><strong><em>NEWSDATA_API_KEY<\/em><\/strong> \u2014 <b>Required.<\/b> Your NewsData.io API key.<\/li>\n<li><strong><em>REQUEST_TIMEOUT<\/em><\/strong> \u2014 <strong>Optional<\/strong>. Defaults to 30 seconds.<\/li>\n<\/ul>\n<p>That\u2019s all the setup you need.[\/vc_column_text][vc_column_text]\n<h2><b>Running the Server<\/b><\/h2>\n<p>The server supports two transport modes depending on how your client communicates:<\/p>\n<h3><b>stdio Transport (Recommended for Desktop\/CLI Clients)<\/b><\/h3>\n<p><code>uv run newsdata-mcp --transport stdio<\/code><\/p>\n<h3><b>Streamable HTTP Transport (For Remote\/Web Clients)<\/b><\/h3>\n<p>Used when clients connect over a network, such as ChatGPT Desktop:<\/p>\n<p><code>uv run newsdata-mcp --transport streamable-http --host 0.0.0.0 --port 8000<\/code><\/p>\n<p>You can also run the server using the module syntax:<\/p>\n<p><code>python -m newsdata_mcp.server --transport stdio<br \/>\npython -m newsdata_mcp.server --transport streamable-http --host 0.0.0.0 --port 8000<\/code>[\/vc_column_text][vc_column_text]\n<h2><b>Connecting to AI Clients<\/b><\/h2>\n<p>The NewsData MCP server is designed to work across the growing ecosystem of MCP-compatible AI clients &#8211; from desktop assistants to agentic coding tools. Once connected, your AI client gets direct, structured access to live and historical news data without the need for any additional coding or manual API handling. The configuration pattern is consistent across clients; you point the client to the server binary, pass your API key as an environment variable, and restart. The sections below mention the exact steps for setting up each of the supported clients.<\/p>\n<p>The simplest way is to add the server to your MCP client&#8217;s JSON config. Each client picks up the config on restart. Substitute \/path\/to\/newsdata.io-mcp for your local clone path.<\/p>\n<h3><b>Claude Code<\/b><\/h3>\n<p><a href=\"https:\/\/code.claude.com\/docs\" rel=\"nofollow\">Claude code<\/a> is Anthropic\u2019s agentic coding tool. Add the server via the CLI:<\/p>\n<p><code>claude mcp add newsdata-mcp -- uv --directory \/path\/to\/newsdata.io-mcp run newsdata-mcp --transport stdio<\/code><\/p>\n<p>Or add it manually to your Claude Code MCP config file (<strong><em>~\/.claude\/mcp.json<\/em><\/strong> globally, or <em><strong>.claude\/mcp.json<\/strong><\/em> per project):<\/p>\n<p><code>{<br \/>\n&quot;mcpServers&quot;: {<br \/>\n&quot;newsdata-mcp&quot;: {<br \/>\n&quot;command&quot;: &quot;uv&quot;,<br \/>\n&quot;args&quot;: [&quot;run&quot;, &quot;newsdata-mcp&quot;, &quot;--transport&quot;, &quot;stdio&quot;],<br \/>\n&quot;cwd&quot;: &quot;\/path\/to\/newsdata.io-mcp&quot;,<br \/>\n&quot;env&quot;: {<br \/>\n&quot;NEWSDATA_API_KEY&quot;: &quot;your_newsdata_api_key&quot;<br \/>\n}<br \/>\n}<br \/>\n}<br \/>\n}<\/code><\/p>\n<p>Restart Claude Code. You can now ask it things like \u201c<i>Fetch the latest tech news from the US,\u201d<\/i> and it will call <strong><em>get_latest_news<\/em><\/strong> directly.<\/p>\n<h3><b>Claude Desktop<\/b><\/h3>\n<p>Edit the Claude Desktop config file:<\/p>\n<ul>\n<li><b>macOS:<\/b> <code>~\/Library\/Application Support\/Claude\/claude_desktop_config.json<\/code><\/li>\n<li><b>Windows:<\/b> <code>%APPDATA%\\Claude\\claude_desktop_config.json<\/code><\/li>\n<\/ul>\n<p><code>{<br \/>\n&quot;mcpServers&quot;: {<br \/>\n&quot;newsdata-mcp&quot;: {<br \/>\n&quot;command&quot;: &quot;uv&quot;,<br \/>\n&quot;args&quot;: [&quot;run&quot;, &quot;newsdata-mcp&quot;, &quot;--transport&quot;, &quot;stdio&quot;],<br \/>\n&quot;cwd&quot;: &quot;\/path\/to\/newsdata.io-mcp&quot;,<br \/>\n&quot;env&quot;: {<br \/>\n&quot;NEWSDATA_API_KEY&quot;: &quot;your_newsdata_api_key&quot;<br \/>\n}<br \/>\n}<br \/>\n}<br \/>\n}<\/code><\/p>\n<p>Restart Claude Desktop. The NewsData tools will appear in the tools menu, and Claude will call them automatically when your query requires news data.<\/p>\n<h3><b>Cursor<\/b><\/h3>\n<p>Create or edit <em><strong>.cursor\/mcp.json<\/strong><\/em> in your project root (or <em><strong>~\/.cursor\/mcp.json globally<\/strong><\/em>):<br \/>\n<code><br \/>\n{<br \/>\n&quot;mcpServers&quot;: {<br \/>\n&quot;newsdata-mcp&quot;: {<br \/>\n&quot;command&quot;: &quot;uv&quot;,<br \/>\n&quot;args&quot;: [&quot;run&quot;, &quot;newsdata-mcp&quot;, &quot;--transport&quot;, &quot;stdio&quot;],<br \/>\n&quot;cwd&quot;: &quot;\/path\/to\/newsdata.io-mcp&quot;,<br \/>\n&quot;env&quot;: {<br \/>\n&quot;NEWSDATA_API_KEY&quot;: &quot;your_newsdata_api_key&quot;<br \/>\n}<br \/>\n}<br \/>\n}<br \/>\n}<\/code><\/p>\n<p>Restart Cursor. The server will appear under Cursor Settings \u2192 MCP.<\/p>\n<h3><b>VS Code (GitHub Copilot)<\/b><\/h3>\n<p>Create <em><strong>.vscode\/mcp.json<\/strong><\/em> in your workspace:<\/p>\n<p><code>{<br \/>\n&quot;servers&quot;: {<br \/>\n&quot;newsdata-mcp&quot;: {<br \/>\n&quot;type&quot;: &quot;stdio&quot;,<br \/>\n&quot;command&quot;: &quot;uv&quot;,<br \/>\n&quot;args&quot;: [&quot;run&quot;, &quot;newsdata-mcp&quot;, &quot;--transport&quot;, &quot;stdio&quot;],<br \/>\n&quot;cwd&quot;: &quot;\/path\/to\/newsdata.io-mcp&quot;,<br \/>\n&quot;env&quot;: {<br \/>\n&quot;NEWSDATA_API_KEY&quot;: &quot;your_newsdata_api_key&quot;<br \/>\n}<br \/>\n}<br \/>\n}<br \/>\n}<\/code><\/p>\n<p>Reload VS Code. The server will be picked up by GitHub Copilot Chat when the agent mode is active.<\/p>\n<h3><b>Windsurf<\/b><\/h3>\n<p>Edit <em><strong>~\/.codeium\/windsurf\/mcp_config.json<\/strong><\/em>:<\/p>\n<p><code>{<br \/>\n&quot;mcpServers&quot;: {<br \/>\n&quot;newsdata-mcp&quot;: {<br \/>\n&quot;command&quot;: &quot;uv&quot;,<br \/>\n&quot;args&quot;: [&quot;run&quot;, &quot;newsdata-mcp&quot;, &quot;--transport&quot;, &quot;stdio&quot;],<br \/>\n&quot;cwd&quot;: &quot;\/path\/to\/newsdata.io-mcp&quot;,<br \/>\n&quot;env&quot;: {<br \/>\n&quot;NEWSDATA_API_KEY&quot;: &quot;your_newsdata_api_key&quot;<br \/>\n}<br \/>\n}<br \/>\n}<br \/>\n}<\/code><\/p>\n<p>Restart Windsurf. The tools are available to Cascade in agentic mode.<\/p>\n<h3><b>ChatGPT Desktop (OpenAI)<\/b><\/h3>\n<p>ChatGPT Desktop requires HTTP transport. Start the server in HTTP mode:<\/p>\n<p><code>uv run newsdata-mcp --transport streamable-http --host 127.0.0.1 --port 8000<\/code><\/p>\n<p>Then open ChatGPT \u2192 Settings \u2192 Connectors \u2192 Add custom connector and register <code>http:\/\/127.0.0.1:8000\/mcp<\/code> as the connector endpoint.[\/vc_column_text][vc_column_text]\n<h2><b>Example Tool Calls<\/b><\/h2>\n<p>Once connected, your AI client calls tools automatically based on your prompts. Here are representative examples of what those tool calls look like under the hood:<\/p>\n<h3><b>Fetch Latest News with Boolean Queries<\/b><\/h3>\n<p><code>get_latest_news(<br \/>\nq=&quot;((pizza OR burger) AND healthy)&quot;,<br \/>\ncountry=&quot;us&quot;,<br \/>\nlanguage=&quot;en&quot;<br \/>\nsize=10<br \/>\n)<\/code><\/p>\n<p>The <strong><em>q<\/em><\/strong> parameters support full boolean logic &#8211; <strong><em>AND<\/em><\/strong>, <strong><em>OR<\/em><\/strong>, <strong><em>NOT<\/em><\/strong>, and parentheses for grouping &#8211; identical to the NewsData.io API.<\/p>\n<h3><b>Fetch Historical News<\/b><\/h3>\n<p><code>get_archive_news(<br \/>\nq=&quot;ukraine war&quot;,<br \/>\nfrom_date=&quot;2025-01-01&quot;,<br \/>\nto_date=&quot;2025-01-31&quot;,<br \/>\nlanguage=&quot;en&quot;<br \/>\n)<\/code><\/p>\n<p>Historical data access depends on your subscription plan. Paid plans support up to 2\u20135 years of archive data.<\/p>\n<h3><b>Fetch Crypto News<\/b><\/h3>\n<p><code>get_crypto_news(<br \/>\ncoin=&quot;btc, eth&quot;,<br \/>\nsentiment=&quot;positive&quot;<br \/>\n)<\/code><\/p>\n<p>The <strong><em>sentiment<\/em><\/strong> parameter filters results by positive, negative, or neutral sentiment \u2014 powered by NewsData.io&#8217;s built-in text analysis.<\/p>\n<h3><b>Fetch Market News<\/b><\/h3>\n<p><code>get_market_news(<br \/>\nsymbol=&quot;AAPL,NVDA&quot;,<br \/>\ncountry=&quot;us&quot;<br \/>\n)<\/code><\/p>\n<p>Filter financial news by stock ticker symbol, sector, or country.<\/p>\n<h3><b>Discover News Sources<\/b><\/h3>\n<p><code>get_news_sources(<br \/>\nlanguage=&quot;en&quot;,<br \/>\npriority_domain=&quot;top&quot;<br \/>\n)<\/code><\/p>\n<p>Returns a list of news sources matching your filters. Useful for scoping queries for high-authority publishers.[\/vc_column_text][vc_column_text]\n<h2><b>Running With Docker<\/b><\/h2>\n<p>If you prefer containerized deployments, a Dockerfile is included.<\/p>\n<h3><b>Build the Image<\/b><\/h3>\n<p><code>docker build -t newsdata-mcp<\/code><\/p>\n<h3><b>Run in HTTP Mode<\/b><\/h3>\n<p><code>docker run --rm -p 8000:8000 \\<br \/>\n-e NEWSDATA_API_KEY=your_newsdata_api_key \\<br \/>\nnewsdata-mcp<\/code><\/p>\n<h3><b>Run in stdio Mode<\/b><\/h3>\n<p><code>docker run --rm -i \\<br \/>\n-e NEWSDATA_API_KEY=your_newsdata_api_key \\<br \/>\nnewsdata-mcp --transport stdio<\/code><\/p>\n<h3><b>Pass a <code>.env<\/code> File<\/b><\/h3>\n<p><code>docker run --rm -p 8000:8000 \\<br \/>\n--env-file .env \\<br \/>\n-e REQUEST_TIMEOUT=45 \\<br \/>\nnewsdata-mcp<\/code>[\/vc_column_text][vc_column_text]\n<h2><b>Practical Use Cases<\/b><\/h2>\n<ul>\n<li><b>Newsroom Research:<\/b> Ask Claude to summarize yesterday\u2019s coverage on a specific topic across English-language top-tier sources &#8211; all in a single conversational turn.<\/li>\n<li><b>Financial Analysis:<\/b> While reviewing a company\u2019s code or documents in Cursor, ask for the latest market news on a stock ticker without leaving your editor.<\/li>\n<li><b>Crypto Monitoring:<\/b> Connect the server to your AI assistant and ask for a daily digest of positive Bitcoin and Ethereum news each morning.<\/li>\n<li><b>Historical Research:<\/b> Use <strong><em>get_archive_news<\/em><\/strong> with date ranges to pull coverage of specific events for journalism, academic, or competitive intelligence work.<\/li>\n<li><b>Source Discovery:<\/b> Use <strong><em>get_news_sources<\/em><\/strong> to find which publishers in a given country and language are available before scoping your query.<\/li>\n<\/ul>\n[\/vc_column_text][vc_column_text]\n<h2><b>Plan Limits to Keep in Mind<\/b><\/h2>\n<ul>\n<li>Free plan results are delayed compared to paid plans.<\/li>\n<li>Result size is capped by the plan. Typically, 10 results on the free tier and up to 50 on paid plans.<\/li>\n<li>Archive access requires a paid subscription; historical range varies by plan.<\/li>\n<\/ul>\n<p>For full details on plan limits, visit the <a href=\"https:\/\/newsdata.io\/pricing\">NewsData.io pricing page<\/a>.<\/p>\n<p>The NewsData.io MCP server turns a powerful API into a first-class tool inside any MCP-compatible AI environment. Whether you are building AI-driven news applications, conducting research in an agentic coding session, or just want live news context inside your AI assistant, the setup takes under five minutes and works across the entire ecosystem of modern AI clients.<\/p>\n<p><b><i>Get your API Key at <\/i><\/b><a href=\"http:\/\/newsdata.io\/register\"><i>newsdata.io\/register<\/i><\/a> <b><i>and the server code at<\/i><\/b> <a href=\"http:\/\/github.com\/newsdataapi\/newsdata.io-mcp\"><i>github.com\/newsdataapi\/newsdata.io-mcp<\/i><\/a>[\/vc_column_text][vc_column_text]\n<h2><b>FAQs<\/b><\/h2>\n<h3><b>Q1. Do I need to write any code to use the MCP server?<\/b><\/h3>\n<p>No. Once the server is installed and configured in your AI client, you interact with it entirely through natural language. The AI handles tool selection and parameter construction automatically.<\/p>\n<h3><b>Q2. Can I use the MCP server on the free NewsData.io plan?<\/b><\/h3>\n<p>Yes. The free plan works with <strong><em>get_latest_news<\/em><\/strong>, <strong><em>get_crypto_news<\/em>, <em>get_market_news<\/em><\/strong>, and <strong><em>get_news_sources<\/em><\/strong>. Archive access requires a paid plan.<\/p>\n<h3><b>Q3. Can I run the server remotely and connect multiple clients?<\/b><\/h3>\n<p>Yes. Use <strong><em>&#8211;transport streamable-http<\/em><\/strong> and deploy the container on any cloud server. Multiple clients can connect to the same server URL.<\/p>\n<h3><b>Q4. Does the MCP server support all NewsData.io query parameters?<\/b><\/h3>\n<p>Yes. Each tool passes through all supported parameters &#8211; country, language, category, sentiment, size, and more &#8211; directly to the corresponding API endpoint.<\/p>\n<h3><b>Q5. Where can I find the full NewsData.io API reference?<\/b><\/h3>\n<p>The complete documentation is available at &#8211; <a href=\"https:\/\/newsdata.io\/documentation\">https:\/\/newsdata.io\/documentation<\/a>[\/vc_column_text][\/vc_column][\/vc_row]\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>This guide walks you through everything: what MCP is, how to install and configure the server, how to connect it to popular AI editors and assistants, and how to make your first tool calls.<br \/>\n<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":11,"featured_media":7421,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Use NewsData.io with AI Assistants via MCP Server? - Newsdata.io - Stay Updated with the Latest News API Trends<\/title>\n<meta name=\"description\" content=\"Learn how to use NewsData.io with AI Assistants via MCP servers. Explore codes for utilizing News APIs.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/newsdata.io\/blog\/news-api-mcp-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use NewsData.io with AI Assistants via MCP Server? - Newsdata.io - Stay Updated with the Latest News API Trends\" \/>\n<meta property=\"og:description\" content=\"Learn how to use NewsData.io with AI Assistants via MCP servers. Explore codes for utilizing News APIs.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/newsdata.io\/blog\/news-api-mcp-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Newsdata.io - Stay Updated with the Latest News API Trends\" \/>\n<meta property=\"article:published_time\" content=\"2026-05-12T09:39:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-12T09:50:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/newsdata.io\/blog\/wp-content\/uploads\/2026\/05\/review-blog-24.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1499\" \/>\n\t<meta property=\"og:image:height\" content=\"840\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Raghav Sharma\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Raghav Sharma\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/newsdata.io\/blog\/news-api-mcp-server\/\",\"url\":\"https:\/\/newsdata.io\/blog\/news-api-mcp-server\/\",\"name\":\"How to Use NewsData.io with AI Assistants via MCP Server? - Newsdata.io - Stay Updated with the Latest News API Trends\",\"isPartOf\":{\"@id\":\"https:\/\/newsdata.io\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/newsdata.io\/blog\/news-api-mcp-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/newsdata.io\/blog\/news-api-mcp-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2026\/05\/review-blog-24.jpg?fit=1499%2C840&ssl=1\",\"datePublished\":\"2026-05-12T09:39:17+00:00\",\"dateModified\":\"2026-05-12T09:50:11+00:00\",\"author\":{\"@id\":\"https:\/\/newsdata.io\/blog\/#\/schema\/person\/2c7fdfa00a8bc73559748ec23250f501\"},\"description\":\"Learn how to use NewsData.io with AI Assistants via MCP servers. Explore codes for utilizing News APIs.\",\"breadcrumb\":{\"@id\":\"https:\/\/newsdata.io\/blog\/news-api-mcp-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/newsdata.io\/blog\/news-api-mcp-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/newsdata.io\/blog\/news-api-mcp-server\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2026\/05\/review-blog-24.jpg?fit=1499%2C840&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2026\/05\/review-blog-24.jpg?fit=1499%2C840&ssl=1\",\"width\":1499,\"height\":840,\"caption\":\"News API via MCP Server\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/newsdata.io\/blog\/news-api-mcp-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/newsdata.io\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Use NewsData.io with AI Assistants via MCP Server?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/newsdata.io\/blog\/#website\",\"url\":\"https:\/\/newsdata.io\/blog\/\",\"name\":\"Newsdata.io - Stay Updated with the Latest News API Trends\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/newsdata.io\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/newsdata.io\/blog\/#\/schema\/person\/2c7fdfa00a8bc73559748ec23250f501\",\"name\":\"Raghav Sharma\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/newsdata.io\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c64fa1d6e5c1d3bb3076c1db38e95026?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c64fa1d6e5c1d3bb3076c1db38e95026?s=96&d=mm&r=g\",\"caption\":\"Raghav Sharma\"},\"description\":\"Raghav is a talented content writer with a passion to create informative and interesting articles. With a degree in English Literature, Raghav possesses an inquisitive mind and a thirst for learning. Raghav is a fact enthusiast who loves to unearth fascinating facts from a wide range of subjects. He firmly believes that learning is a lifelong journey and he is constantly seeking opportunities to increase his knowledge and discover new facts. So make sure to check out Raghav's work for a wonderful reading.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/raghav-sharma-4981b4232\/\"],\"url\":\"https:\/\/newsdata.io\/blog\/author\/raghav\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Use NewsData.io with AI Assistants via MCP Server? - Newsdata.io - Stay Updated with the Latest News API Trends","description":"Learn how to use NewsData.io with AI Assistants via MCP servers. Explore codes for utilizing News APIs.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/newsdata.io\/blog\/news-api-mcp-server\/","og_locale":"en_US","og_type":"article","og_title":"How to Use NewsData.io with AI Assistants via MCP Server? - Newsdata.io - Stay Updated with the Latest News API Trends","og_description":"Learn how to use NewsData.io with AI Assistants via MCP servers. Explore codes for utilizing News APIs.","og_url":"https:\/\/newsdata.io\/blog\/news-api-mcp-server\/","og_site_name":"Newsdata.io - Stay Updated with the Latest News API Trends","article_published_time":"2026-05-12T09:39:17+00:00","article_modified_time":"2026-05-12T09:50:11+00:00","og_image":[{"width":1499,"height":840,"url":"https:\/\/newsdata.io\/blog\/wp-content\/uploads\/2026\/05\/review-blog-24.jpg","type":"image\/jpeg"}],"author":"Raghav Sharma","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Raghav Sharma","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/newsdata.io\/blog\/news-api-mcp-server\/","url":"https:\/\/newsdata.io\/blog\/news-api-mcp-server\/","name":"How to Use NewsData.io with AI Assistants via MCP Server? - Newsdata.io - Stay Updated with the Latest News API Trends","isPartOf":{"@id":"https:\/\/newsdata.io\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/newsdata.io\/blog\/news-api-mcp-server\/#primaryimage"},"image":{"@id":"https:\/\/newsdata.io\/blog\/news-api-mcp-server\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2026\/05\/review-blog-24.jpg?fit=1499%2C840&ssl=1","datePublished":"2026-05-12T09:39:17+00:00","dateModified":"2026-05-12T09:50:11+00:00","author":{"@id":"https:\/\/newsdata.io\/blog\/#\/schema\/person\/2c7fdfa00a8bc73559748ec23250f501"},"description":"Learn how to use NewsData.io with AI Assistants via MCP servers. Explore codes for utilizing News APIs.","breadcrumb":{"@id":"https:\/\/newsdata.io\/blog\/news-api-mcp-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/newsdata.io\/blog\/news-api-mcp-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/newsdata.io\/blog\/news-api-mcp-server\/#primaryimage","url":"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2026\/05\/review-blog-24.jpg?fit=1499%2C840&ssl=1","contentUrl":"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2026\/05\/review-blog-24.jpg?fit=1499%2C840&ssl=1","width":1499,"height":840,"caption":"News API via MCP Server"},{"@type":"BreadcrumbList","@id":"https:\/\/newsdata.io\/blog\/news-api-mcp-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/newsdata.io\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Use NewsData.io with AI Assistants via MCP Server?"}]},{"@type":"WebSite","@id":"https:\/\/newsdata.io\/blog\/#website","url":"https:\/\/newsdata.io\/blog\/","name":"Newsdata.io - Stay Updated with the Latest News API Trends","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/newsdata.io\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/newsdata.io\/blog\/#\/schema\/person\/2c7fdfa00a8bc73559748ec23250f501","name":"Raghav Sharma","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/newsdata.io\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c64fa1d6e5c1d3bb3076c1db38e95026?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c64fa1d6e5c1d3bb3076c1db38e95026?s=96&d=mm&r=g","caption":"Raghav Sharma"},"description":"Raghav is a talented content writer with a passion to create informative and interesting articles. With a degree in English Literature, Raghav possesses an inquisitive mind and a thirst for learning. Raghav is a fact enthusiast who loves to unearth fascinating facts from a wide range of subjects. He firmly believes that learning is a lifelong journey and he is constantly seeking opportunities to increase his knowledge and discover new facts. So make sure to check out Raghav's work for a wonderful reading.","sameAs":["https:\/\/www.linkedin.com\/in\/raghav-sharma-4981b4232\/"],"url":"https:\/\/newsdata.io\/blog\/author\/raghav\/"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2026\/05\/review-blog-24.jpg?fit=1499%2C840&ssl=1","category":["API"],"featured_image_url":"https:\/\/i0.wp.com\/newsdata.io\/blog\/wp-content\/uploads\/2026\/05\/review-blog-24.jpg?fit=1499%2C840&ssl=1","_links":{"self":[{"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/posts\/7416"}],"collection":[{"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/comments?post=7416"}],"version-history":[{"count":3,"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/posts\/7416\/revisions"}],"predecessor-version":[{"id":7426,"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/posts\/7416\/revisions\/7426"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/media\/7421"}],"wp:attachment":[{"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/media?parent=7416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/categories?post=7416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/newsdata.io\/blog\/wp-json\/wp\/v2\/tags?post=7416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}