Context7

Connect AI Agents to
Context7

Automate workflows and connect AI agents to Context7. Metorial is built for developers. Handling OAuth, compliance, observability, and more.

Context7 on Metorial

The Context7 integration lets you access and analyze your codebase directly within conversations, enabling seamless code exploration, documentation generation, and technical question answering using your project's actual source code as context.

Deploy on Metorial

Combine Context7 with other tools

Metorial has 600+ integrations available. Here are some related ones you might find interesting.

Exa

Exa

The Exa integration lets you perform semantic searches across the web and retrieve high-quality content directly within your workflows, enabling AI agents to find and access relevant information from billions of web pages in real-time.

Hackernews

Hackernews

The Hackernews integration lets you fetch and analyze stories, comments, and user data from Hacker News directly within your workflow, enabling you to track trending topics, monitor discussions, and gather insights from the tech community.

Supabase

Supabase

The Supabase integration lets you query and manipulate your database tables, manage authentication, and interact with storage buckets directly from your AI assistant. Use it to build applications, analyze data, or automate database operations without leaving your workflow.

GitHub

GitHub

The GitHub integration lets you search and view repositories, manage issues and pull requests, read file contents, and interact with your GitHub account directly from your workspace.

Google Drive

Google Drive

The Google Drive integration lets you search, read, and manage files and folders in your Google Drive directly through Claude. Use it to access documents, create new files, organize content, and collaborate on shared resources without leaving your conversation.

Brave

Brave

The Brave integration lets you perform web searches using Brave Search directly from Claude, allowing you to retrieve up-to-date information, news, and web results without leaving your conversation.

Hugging Face

Hugging Face

The Hugging Face integration lets you search and explore models, datasets, and Spaces directly from your development environment, making it easy to discover the right pre-trained models and resources for your machine learning projects.

Tavily

Tavily

The Tavily integration lets you perform AI-optimized web searches and retrieve real-time information directly within your workflow, enabling your AI assistant to access current data and research capabilities for answering questions and gathering insights.

Neon

Neon

The Neon integration lets you manage your serverless Postgres databases directly through AI conversations, enabling you to create projects, query database schemas, execute SQL commands, and monitor database usage without leaving your workflow.

Connect anything. Anywhere.

Supported tools and capabilities

Metorial helps you connect AI agents to Context7 with various tools and resources. Tools allow you to interact with perform specific actions, while resources provide read-only access to data and information.

Help & Documentation

Find guides and articles to help you get started with Context7 on Metorial.

More about Context7

Context7 MCP Server

A Model Context Protocol (MCP) server that provides seamless access to Context7's comprehensive library documentation database. Search across thousands of libraries, retrieve focused documentation, and integrate up-to-date reference materials directly into your AI-assisted development workflow. Perfect for developers who want instant access to reliable, curated technical documentation without leaving their development environment.

Overview

The Context7 MCP server bridges the gap between your development tools and Context7's extensive documentation repository. Instead of manually searching for library documentation or copying code examples from multiple sources, this server enables your AI assistant to fetch exactly the documentation you need, when you need it. Whether you're exploring new libraries, debugging implementation details, or seeking best practices, Context7 provides filtered, relevant documentation that helps you write better code faster.

Context7 maintains a curated collection of documentation for popular libraries and frameworks, complete with trust scores, usage statistics, and token-aware content delivery. The server intelligently handles documentation retrieval, supports topic-based filtering, and respects token limits to ensure you get precisely the information you need without overwhelming your context window.

Features

  • Intelligent Library Search: Quickly find libraries and their documentation across Context7's database with natural language queries
  • Filtered Documentation Retrieval: Fetch documentation with optional topic filtering to zero in on specific functionality
  • Token-Aware Responses: Control the size of documentation responses to manage context window usage efficiently
  • Multiple Output Formats: Receive documentation in plain text or structured JSON format depending on your needs
  • Trust Scoring: Access metadata including community trust scores and star ratings to evaluate library quality
  • Resource Templates: Direct URI-based access to documentation and search results for flexible integration

Tools

search_libraries

Search for libraries and documentation across the Context7 platform. This tool helps you discover relevant libraries based on your search terms and provides essential metadata to help you evaluate options.

Parameters:

  • query (required, string): Your search term for finding libraries. Examples include "react hook form", "next.js ssr", "vue router", or any library name or technology you're looking for.

Returns: A list of matching libraries with comprehensive metadata including repository stars, community trust scores, total token counts, and direct paths for documentation retrieval.

Use Cases:

  • Discovering libraries for specific functionality
  • Comparing similar libraries before making implementation decisions
  • Finding official documentation paths for popular frameworks
  • Exploring alternatives to libraries you're currently using

get_documentation

Retrieve detailed documentation for a specific library or repository from Context7. This powerful tool supports advanced filtering to help you extract exactly the documentation segments you need.

Parameters:

  • library_path (required, string): The library identifier path, typically in the format "organization/repository" (e.g., "vercel/next.js", "react-hook-form/documentation", "vuejs/vue-router")
  • topic (optional, string): Filter documentation by specific topic areas such as "ssr", "hooks", "routing", "authentication", "api", or any other documentation section
  • format (optional, string): Choose response format - "txt" for plain text (default) or "json" for structured data with additional metadata
  • tokens (optional, number): Set a maximum token limit for the response to manage context window usage efficiently

Returns: Complete or filtered documentation content in your chosen format, ready to be integrated into your development context.

Use Cases:

  • Retrieving comprehensive library documentation for review
  • Extracting specific documentation sections using topic filters
  • Managing context window size with token limits
  • Obtaining structured documentation data for further processing

Resource Templates

library-docs

Direct access to library documentation through a URI-based resource template. This template provides a standardized way to reference documentation resources.

URI Template: context7://library/{library_path}/docs

Query Parameters:

  • format: Output format (txt or json)
  • topic: Topic filter for focused documentation
  • tokens: Maximum token count for the response

Example URIs:

  • context7://library/vercel/next.js/docs
  • context7://library/react-hook-form/documentation/docs?topic=validation
  • context7://library/tanstack/react-query/docs?format=json&tokens=5000

search-results

Access library search results as a resource, enabling persistent references to search queries.

URI Template: context7://search/{query}

Example URIs:

  • context7://search/typescript validation libraries
  • context7://search/react state management
  • context7://search/nextjs authentication

Typical Workflows

Exploring New Libraries: Start with search_libraries to discover options, review trust scores and popularity metrics, then use get_documentation to dive deep into the most promising candidates.

Focused Learning: When you need to understand a specific feature, use get_documentation with topic filtering to retrieve only the relevant sections, keeping your context clean and focused.

Implementation Reference: Retrieve documentation for libraries you're actively using, with token limits set appropriately to leave room for your code and other context.

Comparison Research: Search for multiple libraries solving similar problems, fetch their documentation, and compare approaches, APIs, and implementation patterns side by side.

Benefits

The Context7 MCP server transforms how you access documentation during development. Rather than context-switching to browsers, parsing through lengthy docs sites, or maintaining local documentation copies, you get instant, filtered access to curated content. The trust scoring helps you make informed decisions about library adoption, while token-aware delivery ensures you never overwhelm your AI assistant's context window with unnecessary information.

By integrating documentation retrieval directly into your AI-assisted workflow, you maintain focus, reduce friction, and spend more time writing code and less time hunting for information. The combination of search, filtered retrieval, and flexible formatting makes Context7 an essential tool for modern development workflows.

Ready to build with Metorial?

Let's take your AI-powered applications to the next level, together.

About Metorial

Metorial provides developers with instant access to 600+ MCP servers for building AI agents that can interact with real-world tools and services. Built on MCP, Metorial simplifies agent tool integration by offering pre-configured connections to popular platforms like Google Drive, Slack, GitHub, Notion, and hundreds of other APIs. Our platform supports all major AI agent frameworks—including LangChain, AutoGen, CrewAI, and LangGraph—enabling developers to add tool calling capabilities to their agents in just a few lines of code. By eliminating the need for custom integration code, Metorial helps AI developers move from prototype to production faster while maintaining security and reliability. Whether you're building autonomous research agents, customer service bots, or workflow automation tools, Metorial's MCP server library provides the integrations you need to connect your agents to the real world.

Star us on GitHub