Tech News Update Agent

Tech News Update Agent

A FastAPI backend that integrates with ElevenLabs MCP to create an AI agent capable of making outbound calls and delivering friendly, jargon-free tech news updates.

Category
Visit Server

README

ElevenLabs MCP Integration - Tech News Update Agent

A FastAPI backend to create an ElevenLabs agent that makes outbound calls to deliver friendly, jargon-free tech news updates. This project demonstrates the integration of ElevenLabs MCP (Model Context Protocol) for creating conversational AI agents with voice capabilities.

🚀 Features

  • Conversational AI Agent: Creates a confident, friendly tech-savvy colleague
  • Voice Integration: Uses ElevenLabs Alice voice for natural-sounding calls
  • Tech News Delivery: Provides updates about AI, programming, and cybersecurity
  • Simple API: Easy-to-use endpoints for agent creation and call management
  • MCP Integration: Leverages ElevenLabs MCP for seamless agent management

📁 Project Structure

ElevenLabs/
├── app/
│   ├── main.py              # FastAPI application with endpoints
│   ├── elevenlabs_client.py # ElevenLabs API client functions
│   └── config.py            # Configuration and environment variables
├── requirements.txt         # Python dependencies
├── .env.example            # Environment variables template
├── .gitignore              # Git ignore rules
└── README.md               # Project documentation

🛠️ Setup

Prerequisites

  • Python 3.8+
  • ElevenLabs API key
  • ElevenLabs phone number (for outbound calls)
  • Git

Installation

  1. Clone the repository

    git clone https://github.com/LEKKALAGANESH/Eleven-Labs-MCP-Integration.git
    cd Eleven-Labs-MCP-Integration
    
  2. Install dependencies

    pip install -r requirements.txt
    
  3. Configure environment variables

    cp .env.example .env
    # Edit .env with your actual values
    
  4. Run the server

    uvicorn app.main:app --reload
    

🔧 Configuration

Create a .env file with the following variables:

ELEVENLABS_API_KEY=your_elevenlabs_api_key
ELEVENLABS_BASE_URL=https://api.elevenlabs.io/v1
AGENT_VOICE_ID=Xb7hH8MSUJpSbSDYk0k2
AGENT_PHONE_NUMBER_ID=your_phone_number_id

📡 API Endpoints

1. Create Agent

POST /create-agent

Creates a new Tech News Update Agent with predefined personality and voice.

Response:

{
  "agent": {
    "agent_id": "agent_5701k1capwtse9fske3xgefspyra",
    "name": "Tech News Update Agent",
    "voice_id": "Xb7hH8MSUJpSbSDYk0k2"
  }
}

2. Make Outbound Call

POST /call

Initiates an outbound call to the specified phone number.

Request Body:

{
  "phone_number": "+1234567890"
}

Response:

{
  "result": {
    "conversation_id": "conv_3401k1casackffe9emj08wgf9zsd",
    "call_sid": "CA12265951d92ca816f1f15693d7efd6a2",
    "status": "success"
  }
}

🎯 Usage Examples

Using curl

  1. Create the agent:

    curl -X POST "http://localhost:8000/create-agent"
    
  2. Make a call:

    curl -X POST "http://localhost:8000/call" \
         -H "Content-Type: application/json" \
         -d '{"phone_number": "+1234567890"}'
    

Using Python requests

import requests

# Create agent
response = requests.post("http://localhost:8000/create-agent")
agent_data = response.json()
agent_id = agent_data["agent"]["agent_id"]

# Make call
call_data = {"phone_number": "+1234567890"}
response = requests.post("http://localhost:8000/call", json=call_data)
print(response.json())

🤖 Agent Personality

The Tech News Update Agent is configured with:

  • Tone: Confident, friendly, and conversational
  • Voice: Alice (female voice) for natural communication
  • Expertise: AI, programming, and cybersecurity updates
  • Style: Jargon-free explanations with practical implications
  • Approach: Like a knowledgeable colleague sharing interesting news

⚠️ Important Notes

  • Phone Verification: You must have a verified or paid ElevenLabs/Twilio account to call unverified numbers
  • Agent ID: After creating the agent, update the agent_id in main.py with the returned ID
  • API Limits: Be aware of ElevenLabs API rate limits and usage quotas
  • Environment Variables: Never commit your actual API keys to version control

🔗 Related Links

📝 License

This project is open source and available under the MIT License.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📞 Support

For support, please open an issue in the GitHub repository or contact the maintainers.


Built with ❤️ using ElevenLabs MCP Integration

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured