Gen AI Lyrics Search Agent
A generative AI agent that searches song lyrics across the web and returns results formatted for mobile apps, built with MCP.
README
Gen AI Lyrics Search Agent
A generative AI agent that can search for song lyrics across the web and return results in a specific format for mobile apps. Built with Model Context Protocol (MCP) for standardized tool integration.
Features
- š Web-based lyrics search across multiple sources
- š¤ Generative AI-powered conversation interface
- š MCP-compliant tool integration
- š FastAPI-based REST API
- š Authentication and rate limiting
- š Performance monitoring and analytics
Prerequisites
- Python 3.10 or higher
- Poetry for dependency management
- Docker (optional)
Setup
- Clone the repository:
git clone <repository-url>
cd lyrics-search-agent
- Install dependencies using Poetry:
poetry install
- Set up environment variables:
cp .env.example .env
# Edit .env with your configuration
- Run the application:
poetry run uvicorn app.main:app --reload
Or using Docker:
docker build -t lyrics-search-agent .
docker run -p 8000:8000 lyrics-search-agent
API Documentation
Once the application is running, visit:
- API documentation: http://localhost:8000/docs
- ReDoc alternative: http://localhost:8000/redoc
Key Endpoints
GET /: Service informationPOST /search: Search for lyricsGET /tools: List available tools
Development
Project Structure
app/
āāā __init__.py
āāā main.py
āāā mcp/
ā āāā __init__.py
ā āāā protocol.py
āāā tools/
āāā web_search.py
Adding New Tools
- Create a new tool class in
app/tools/ - Implement the
BaseToolinterface - Register the tool in
app/main.py
Testing
Run tests using pytest:
poetry run pytest
Contributing
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- OpenAI/Anthropic for LLM capabilities
- FastAPI for the web framework
- LangChain for LLM orchestration
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
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.