How to Use the Lyrics.ovh MCP in LangChain
Build multi-step music reasoning chains in LangChain using instant song suggestions and lyric retrieval.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Lyrics.ovh MCP to LangChain
Create your Vinkius account to connect Lyrics.ovh to LangChain and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Build song-discovery chains with LangChain
The `suggest_songs` tool feeds raw track suggestions directly into your LangChain decision loops. Your agent takes a vague user mood, queries the endpoint, and instantly parses the list to select the best match without manual intervention. This setup lets you pass the selected track straight into the next step of your chain. You get a fluid pipeline where the output of your song search feeds your downstream prompts automatically.
Extract full lyrics inside LangGraph agents
The `get_lyrics` tool retrieves the exact text of any song directly during agent execution. Your LangGraph agent checks the lyrics for specific themes or sentiment, making it easy to categorize music libraries on the fly. LangSmith tracks the latency and token usage of these lyric requests in real time. You see exactly when the agent calls the server and how much data passes through the chain.
Multi-step music lookup via this MCP Server
This MCP Server lets your LangChain agent run a two-step lookup by combining both tools in a single run. The agent first queries `suggest_songs` to resolve a messy user query, then immediately fires `get_lyrics` to fetch the complete text. You configure this behavior by passing the server tools to your ReAct agent initialization. The agent decides when to search and when to pull the full text based on what the user asks.
Set up Lyrics.ovh MCP in LangChain
Prerequisites
- Python 3.10+ installed
-
langchain-mcp-adapters+langgraphpackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
pip install langchain-mcp-adapters langgraph langchain-openai. The MCP adapters package converts MCP tools into native LangChainBaseToolobjects. - 2
Connect via HTTP transport
Use
MultiServerMCPClientwith"transport": "http"pointing to your Vinkius endpoint. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. - 3
Create a ReAct agent
Pass the discovered tools to
create_react_agent()from LangGraph. The agent automatically routes Lyrics.ovh tool calls through the MCP protocol. - 4
Run with any LLM
Swap
ChatOpenAIforChatAnthropic,ChatGoogleGenerativeAI, or any LangChain-compatible model. The MCP tools work identically across all providers.
from langchain_mcp_adapters.client import MultiServerMCPClient
from langgraph.prebuilt import create_react_agent
from langchain_openai import ChatOpenAI
async with MultiServerMCPClient({
"lyricsovh-mcp": {
"transport": "http",
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
}
}) as client:
tools = client.get_tools()
agent = create_react_agent(
ChatOpenAI(model="gpt-4o"),
tools,
)
result = await agent.ainvoke({
"messages": "List recent Lyrics.ovh transactions"
})
print(result["messages"][-1].content) Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Lyrics.ovh. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Lyrics.ovh MCP in LangChain
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Lyrics.ovh MCP today
We host it, we monitor it, we maintain it. You just paste one token.