# Context7 (verified)

Fetch up-to-date, version-specific documentation and code examples directly into your prompts. Enhance your coding experience by eliminating outdated information and hallucinated APIs. Simply add `us…

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add upstash/context7-mcp

# Browse available tools
npx -y @smithery/cli@latest tool list upstash/context7-mcp

# Get full schema for a tool
npx -y @smithery/cli@latest tool get upstash/context7-mcp resolve-library-id

# Call a tool
npx -y @smithery/cli@latest tool call upstash/context7-mcp resolve-library-id '{}'
```

## Direct MCP Connection

Endpoint: `https://context7-mcp--upstash.run.tools`

## Tools (2)

- `resolve-library-id` — Resolves a package/product name to a Context7-compatible library ID and returns matching libraries.
- `query-docs` — Retrieves and queries up-to-date documentation and code examples from Context7 for any programming library or framework.

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get upstash/context7-mcp <tool-name>
```

---

Source: https://github.com/upstash/context7-mcp | License: MIT
