VOOZH about

URL: https://apify.com/agentify/context7-mcp-server

โ‡ฑ Context7 MCP Server ยท Apify


Pricing

Pay per event + usage

Go to Apify Store

Up-to-date code documentation for any prompt

Pricing

Pay per event + usage

Rating

0.0

(0)

Developer

๐Ÿ‘ agentify

agentify

Maintained by Community

Actor stats

0

Bookmarked

27

Total users

0

Monthly active users

5 months ago

Last modified

Share

Context7 MCP Server provides up-to-date, version-specific documentation and code examples straight from the source for any programming library or framework. Get working code answers with the latest APIs and best practices.

About this MCP Server: To understand how to connect to and utilize this MCP server, please refer to the official Model Context Protocol documentation at mcp.apify.com.

Connection URL

MCP clients can connect to this server at:

https://mcp-servers--context7-mcp-server.apify.actor/mcp

Client Configuration

To connect to this MCP server, use the following configuration in your MCP client:

{
"mcpServers":{
"context7":{
"url":"https://mcp-servers--context7-mcp-server.apify.actor/mcp",
"headers":{
"Authorization":"Bearer YOUR_APIFY_TOKEN"
}
}
}
}

Note: Replace YOUR_APIFY_TOKEN with your actual Apify API token. You can find your token in the Apify Console.

๐Ÿšฉ Claim this MCP server

All credits to the original authors of https://github.com/upstash/context7 To claim this server, please write to ai@apify.com.


Context7 MCP - Up-to-date Code Docs For Any Prompt

โŒ Without Context7

LLMs rely on outdated or generic information about the libraries you use. You get:

  • โŒ Code examples are outdated and based on year-old training data
  • โŒ Hallucinated APIs that don't even exist
  • โŒ Generic answers for old package versions

โœ… With Context7

Context7 MCP pulls up-to-date, version-specific documentation and code examples straight from the source โ€” and places them directly into your prompt.

Add use context7 to your prompt in Cursor:

Create a Next.js middleware that checks for a valid JWT in cookies and redirects unauthenticated users to `/login`. use context7
Configure a Cloudflare Worker script to cache JSON API responses for five minutes. use context7

Context7 fetches up-to-date code examples and documentation right into your LLM's context.

  • 1๏ธโƒฃ Write your prompt naturally
  • 2๏ธโƒฃ Tell the LLM to use context7
  • 3๏ธโƒฃ Get working code answers

No tab-switching, no hallucinated APIs that don't exist, no outdated code generation.

๐Ÿ”จ Available Tools

Context7 MCP provides the following tools that LLMs can use:

  • resolve-library-id: Resolves a general library name into a Context7-compatible library ID.

    • libraryName (required): The name of the library to search for
  • get-library-docs: Fetches documentation for a library using a Context7-compatible library ID.

    • context7CompatibleLibraryID (required): Exact Context7-compatible library ID (e.g., /mongodb/docs, /vercel/next.js)
    • topic (optional): Focus the docs on a specific topic (e.g., "routing", "hooks")
    • tokens (optional, default 5000): Max number of tokens to return. Values less than 1000 are automatically increased to 1000.

๐Ÿ›Ÿ Tips

Add a Rule

If you don't want to add use context7 to every prompt, you can define a simple rule in your MCP client's rule section:

  • For Windsurf, in .windsurfrules file
  • For Cursor, from Cursor Settings > Rules section
  • For Claude Code, in CLAUDE.md file

Or the equivalent in your MCP client to auto-invoke Context7 on any code question.

Example Rule:

Always use context7 when I need code generation, setup or configuration steps, or
library/API documentation. This means you should automatically use the Context7 MCP
tools to resolve library id and get library docs without me having to explicitly ask.

From then on, you'll get Context7's docs in any related conversation without typing anything extra. You can alter the rule to match your use cases.

Use Library Id

If you already know exactly which library you want to use, add its Context7 ID to your prompt. That way, Context7 MCP server can skip the library-matching step and directly continue with retrieving docs.

Implement basic authentication with Supabase. use library /supabase/supabase for API and docs.

The slash syntax tells the MCP tool exactly which library to load docs for.

References

To learn more about Apify and Actors, take a look at the following resources:

You might also like

Excel Mcp Server

lovely_radiologist/excel-mcp-server

Time MCP Server

agentify/time-mcp-server

An MCP server implementing the Model Context Protocol (MCP) for time-related operations.

MCP Documentation Hunter

bmerlyns/merlyn-docs-hunter

Enhance your coding assistants with up to date documentation of the frameworks or codebases you use. Actor to be called via MCP and provide realtime data to the coding assistant -> improving LLM's context and reducing hallucinations.

๐Ÿ‘ User avatar

Benjamin Merlyn

1

Confluence MCP Server

scraper_guru/confluence-mcp-server

A Model Context Protocol (MCP) server that enables AI assistants to interact with Confluence Cloud. Search pages, read content, create and update documentation, manage spaces โ€” directly from Claude, Cursor, or any MCP client.

๐Ÿ‘ User avatar

LIAICHI MUSTAPHA

1

Mcp Server Generator

fiery_dream/mcp-server-generator

๐Ÿ‘ User avatar

Cody Churchwell

1

Related articles

Best MCP servers for developers
Read more
Build and deploy MCP servers in minutes with a TypeScript template
Read more
How to use MCP with Apify Actors
Read more