Twitter-News-MCP-Server

Yatish2003/Twitter-News-MCP-Server

3.1

If you are the rightful owner of Twitter-News-MCP-Server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

A simple server that allows Claude Desktop to search Twitter and fetch news headlines using MCP technology.

Tools
3
Resources
0
Prompts
0

Twitter & News MCP Server

A simple server that lets Claude Desktop search Twitter and get news headlines.

What This Does

This project creates 3 tools that Claude can use:

  1. Search Tweets - Find tweets about any topic
  2. Get User Tweets - See recent tweets from any Twitter user
  3. Get News - Fetch latest news headlines

Before You Start

You need these API keys (both are free):

Setup (5 minutes)

Step 1: Download the Files

Create a folder called twitter-mcp-server and add these files:

twitter-mcp-server/
├── src/
│   ├── tools.js
│   └── server.js  
├── .env
└── package.json

Step 2: Install Dependencies

Open terminal in your project folder and run:

npm install

Step 3: Add Your API Keys

Create a .env file and add your keys:

TWITTER_BEARER_TOKEN=your_twitter_key_here
NEWS_API_KEY=your_news_key_here

Step 4: Test the Server

npm start

You should see: Twitter MCP server running on stdio

Connect to Claude Desktop

Add this to Claude Desktop's config file:

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

{
  "mcpServers": {
    "twitter-news": {
      "command": "node",
      "args": ["C:/path/to/your/twitter-mcp-server/src/server.js"]
    }
  }
}

Replace C:/path/to/your/ with your actual folder path.

How to Use

After setup, you can ask Claude:

  • "Search for tweets about AI"
  • "Get tweets from @elonmusk"
  • "Show me technology news"
  • "What's the latest business news?"

Package.json File

{
  "name": "twitter-mcp-server",
  "version": "1.0.0",
  "type": "module",
  "scripts": {
    "start": "node src/server.js"
  },
  "dependencies": {
    "@modelcontextprotocol/sdk": "^1.16.0",
    "dotenv": "^17.2.0",
    "express": "^5.1.0",
    "zod": "^3.25.76"
  }
}

Common Problems

"Cannot find package" - Run npm install first

"API key not configured" - Check your .env file has the right keys

"Server not connecting" - Make sure the file path in Claude config is correct

That's It!

Once set up, Claude can search Twitter and get news for you automatically. No more manual API calls needed!