2,500+ MCP servers ready to use
Vinkius

Internet Archive MCP Server for Mastra AI 10 tools — connect in under 2 minutes

Built by Vinkius GDPR 10 Tools SDK

Mastra AI is a TypeScript-native agent framework built for modern web stacks. Connect Internet Archive through Vinkius and Mastra agents discover all tools automatically. type-safe, streaming-ready, and deployable anywhere Node.js runs.

Vinkius supports streamable HTTP and SSE.

typescript
import { Agent } from "@mastra/core/agent";
import { createMCPClient } from "@mastra/mcp";
import { openai } from "@ai-sdk/openai";

async function main() {
  // Your Vinkius token. get it at cloud.vinkius.com
  const mcpClient = await createMCPClient({
    servers: {
      "internet-archive": {
        url: "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
      },
    },
  });

  const tools = await mcpClient.getTools();
  const agent = new Agent({
    name: "Internet Archive Agent",
    instructions:
      "You help users interact with Internet Archive " +
      "using 10 tools.",
    model: openai("gpt-4o"),
    tools,
  });

  const result = await agent.generate(
    "What can I do with Internet Archive?"
  );
  console.log(result.text);
}

main();
Internet Archive
Fully ManagedVinkius Servers
60%Token savings
High SecurityEnterprise-grade
IAMAccess control
EU AI ActCompliant
DLPData protection
V8 IsolateSandboxed
Ed25519Audit chain
<40msKill switch
Stream every event to Splunk, Datadog, or your own webhook in real-time

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure

About Internet Archive MCP Server

Connect the Internet Archive to any AI agent and access the world's largest digital library — 40M+ books, videos, audio recordings, software, images, and archived web pages — plus the Wayback Machine for historical website snapshots, all through natural conversation.

Mastra's agent abstraction provides a clean separation between LLM logic and Internet Archive tool infrastructure. Connect 10 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.

What you can do

  • Universal Search — Search across the entire Internet Archive collection for books, films, music, software, images, and web pages with complex query syntax
  • Collection Browsing — Explore curated collections like Prelinger Archives, Project Gutenberg, NASA images, TV news, and more
  • Media Type Filtering — Search specifically for texts, movies, audio, software, images, or datasets
  • Creator Search — Find all works by a specific author, director, musician, or organization
  • Historical Date Range — Discover content from specific decades or year ranges
  • Item Metadata — Get complete details for any item including description, subjects, collections, file formats, and download links
  • File Listings — See all downloadable files for an item with formats (PDF, EPUB, MP4, MP3) and sizes
  • User Reviews — Read community reviews and ratings for archived items
  • Wayback Machine — Check if any URL has been archived and find the closest snapshot date
  • View Statistics — Track popularity and access counts for archived items

The Internet Archive MCP Server exposes 10 tools through the Vinkius. Connect it to Mastra AI in under two minutes — no API keys to rotate, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.

How to Connect Internet Archive to Mastra AI via MCP

Follow these steps to integrate the Internet Archive MCP Server with Mastra AI.

01

Install dependencies

Run npm install @mastra/core @mastra/mcp @ai-sdk/openai

02

Replace the token

Replace [YOUR_TOKEN_HERE] with your Vinkius token

03

Run the agent

Save to agent.ts and run with npx tsx agent.ts

04

Explore tools

Mastra discovers 10 tools from Internet Archive via MCP

Why Use Mastra AI with the Internet Archive MCP Server

Mastra AI provides unique advantages when paired with Internet Archive through the Model Context Protocol.

01

Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add Internet Archive without touching business code

02

Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation

03

TypeScript-native: full type inference for every Internet Archive tool response with IDE autocomplete and compile-time checks

04

One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure

Internet Archive + Mastra AI Use Cases

Practical scenarios where Mastra AI combined with the Internet Archive MCP Server delivers measurable value.

01

Automated workflows: build multi-step agents that query Internet Archive, process results, and trigger downstream actions in a typed pipeline

02

SaaS integrations: embed Internet Archive as a first-class tool in your product's AI features with Mastra's clean agent API

03

Background jobs: schedule Mastra agents to query Internet Archive on a cron and store results in your database automatically

04

Multi-agent systems: create specialist agents that collaborate using Internet Archive tools alongside other MCP servers

Internet Archive MCP Tools for Mastra AI (10)

These 10 tools become available when you connect Internet Archive to Mastra AI via MCP:

01

get_item_files

Items may contain multiple files in various formats (PDF, EPUB, MP4, MP3, JPEG, etc.). The identifier is the unique item ID from search results or the item URL. Use this to see what formats are available for download. Files can be downloaded from: https://archive.org/download/{identifier}/{filename} Get the file listing for a specific Internet Archive item

02

get_item_metadata

Returns: title, creator, date, description, subjects, collection(s), publisher, language, license, download stats, reviews, and complete file listing with formats and sizes. The identifier is obtained from search results or can be found in the item URL (e.g., from https://archive.org/details/big_buck_bunny, the identifier is "big_buck_bunny"). Use this to get comprehensive information about a specific item before downloading or citing it. Get complete metadata and details for a specific Internet Archive item

03

get_item_reviews

Each review includes reviewer name, star rating, review text, and submission date. Use this to understand community reception and quality assessment of items. Not all items have reviews — community items tend to have more user feedback. Get user reviews for a specific Internet Archive item

04

get_views_stats

Returns total views and, when available, daily view counts and geographic breakdown. Use this to measure the popularity and reach of archived content. The identifier is the unique item ID from search results or the item URL. Get view count statistics for an Internet Archive item

05

search

The query parameter supports complex search syntax: AND, OR, NOT, wildcards (*), phrase matching ("..."), and field-specific searches (title:"X", subject:"Y"). Returns item identifiers, titles, media types, creators, dates, and collection info. Use this for broad searches across all media types. Optional fields parameter specifies which fields to return (comma-separated: "identifier,title,mediatype,creator,date,collection"). Default returns 25 rows; use rows to get up to 100 per page. Use page for pagination. Sort options: "date desc", "date asc", "title asc", "title desc", "creator asc", "downloads desc". Example queries: "moon landing", "subject:world war 2", "collection:prelinger". Search the Internet Archive for books, videos, audio, software, images, and more

06

search_by_collection

Common collections: "prelinger" (Prelinger Archives), "fedflix" (Federal government films), "gutenberg" (Project Gutenberg ebooks), "opensource_movies" (community films), "netlabels" (netlabel music), "softwarelibrary" (classic software), "tv" (TV news archive), "pubmed" (medical journal articles), "nasa" (NASA images and videos), "americanlibraries" (library collections). Returns items within that collection with their identifiers, titles, and metadata. Use this to browse or search within curated collections. Search for items in a specific Internet Archive collection

07

search_by_creator

The creator name should match how it appears in the item metadata (may be full name or organization name). Use this to find the complete works of an author, all films by a director, or all content from an organization. Example creators: "George Orwell", "Charlie Chaplin", "NASA", "Project Gutenberg". Search for items created by a specific person or organization

08

search_by_date_range

Combines a search query with year filtering to find historical content from a specific era. Use this to find content from specific decades or periods. Example: query="science fiction", startYear="1950", endYear="1959" finds 1950s sci-fi. The query parameter can be any valid search term. Years should be 4-digit format. Search for items within a specific year range

09

search_by_mediatype

Media types include: "texts" (books, articles, documents), "movies" (films, videos, TV clips), "audio" (music, podcasts, radio, audiobooks), "software" (classic PC games, applications), "image" (photos, artwork, maps), "dataset" (data files), "web" (web pages). Use this when you want to find only items of a specific format. Example: mediatype="movies" returns only video content. Search for items of a specific media type in the Internet Archive

10

wayback_availability

Returns the closest (most recent) archived snapshot with its timestamp and availability status. Use this to find archived versions of websites, verify if a page is preserved, or get the date of the most recent snapshot. The archived URL can be accessed at: https://web.archive.org/web/{timestamp}/{original_url}. Example: For https://example.com, returns the closest archived snapshot date and URL. Check if a URL has been archived by the Wayback Machine and find available snapshots

Example Prompts for Internet Archive in Mastra AI

Ready-to-use prompts you can give your Mastra AI agent to start working with Internet Archive immediately.

01

"Search for public domain films from the 1940s."

02

"Check if https://example.com has been archived."

03

"Show me all NASA images available."

Troubleshooting Internet Archive MCP Server with Mastra AI

Common issues when connecting Internet Archive to Mastra AI through the Vinkius, and how to resolve them.

01

createMCPClient not exported

Install: npm install @mastra/mcp

Internet Archive + Mastra AI FAQ

Common questions about integrating Internet Archive MCP Server with Mastra AI.

01

How does Mastra AI connect to MCP servers?

Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
02

Can Mastra agents use tools from multiple servers?

Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
03

Does Mastra support workflow orchestration?

Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.

Connect Internet Archive to Mastra AI

Get your token, paste the configuration, and start using 10 tools in under 2 minutes. No API key management needed.