How to Use the Elsevier ScienceDirect MCP in Mastra AI
Build resilient research workflows on Elsevier ScienceDirect with Mastra AI's automatic retries and conditional logic.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Elsevier ScienceDirect MCP to Mastra AI
Create your Vinkius account to connect Elsevier ScienceDirect to Mastra AI and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Create Fault-Tolerant Research Bots
APIs fail. Mastra AI is built for that reality. Your agent can attempt to `get_article`, and if the network flakes out, Mastra's engine automatically retries with exponential backoff. This is essential for long-running data ingestion jobs that can't afford to stop halfway through. Don't just retry—react. You can design workflows with conditional branches. For instance: if a call to `get_article` fails with an auth error, your agent can automatically run `get_article_entitlement` to check permissions, log the issue, and then move to the next item in the queue. You're building a robust process, not just a simple script.
Automate Content Ingestion Pipelines
Set up an agent to run `search_sciencedirect` and find a batch of articles. Then, have it loop through each result, calling `get_article_metadata` for citation info and `get_article` to pull the abstract. This becomes a reliable, automated pipeline for your knowledge base. The workflow won't crash if one article fails. Mastra AI's engine isolates failures, allowing the agent to continue processing the rest of the batch. You can even add a step that uses `get_subject_classifications` to automatically tag each article before inserting it into your database.
Build Workflows with Human-in-the-Loop
Some decisions need a person. Mastra AI lets you pause a workflow to wait for human approval. For example, an agent could `search_sciencedirect` for papers, use `get_hosting_permissions` to flag any with publishing restrictions, and then present a list to a team member for review. Only after that person gives the okay does the workflow resume, proceeding to download the full text with `get_article`. This combination of automated search from an MCP Server and manual curation is how you build high-quality, compliant datasets without giving up automation.
Set up Elsevier ScienceDirect MCP in Mastra AI
Prerequisites
- Node.js 18+ and a TypeScript project
-
@mastra/mcp+@mastra/corepackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
npm install @mastra/mcp @mastra/coreplus your preferred model provider (e.g.@ai-sdk/openai). - 2
Configure the MCPClient
Create an
MCPClientwith your Vinkius endpoint as aURLobject. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. - 3
Discover and inject tools
Call
mcpClient.listTools()and spread the result into your agent'stoolsobject. All Elsevier ScienceDirect tools become native Mastra tools. - 4
Run with any model
Swap
openai("gpt-4o")for any AI SDK-compatible provider. Callagent.generate()and the agent routes tool calls through MCP automatically.
import { MCPClient } from "@mastra/mcp";
import { Agent } from "@mastra/core/agent";
import { openai } from "@ai-sdk/openai";
const mcpClient = new MCPClient({
id: "elsevier-sciencedirect-mcp-client",
servers: {
"elsevier-sciencedirect-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "Elsevier ScienceDirect Agent",
model: openai("gpt-4o"),
instructions: "You have access to Elsevier ScienceDirect tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent Elsevier ScienceDirect transactions"
);
console.log(result.text); Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Elsevier ScienceDirect. 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 Elsevier ScienceDirect MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Elsevier ScienceDirect MCP today
We host it, we monitor it, we maintain it. You just paste one token.