Skip to content
Changelog

Report a bug

Context7 MCP integration: operations for AI agents

Context7 MCP connects to Type.com as an integration. This page lists the 92 operations documented for Claude and Codex in Type.com: 46 read, 35 write, 11 destructive.

About Context7 MCP

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

Categories: Developer Tools & IT

How to connect Context7 MCP to Type.com

Access
Organization connection: one shared account for the workspace.

To add the connection, follow the steps in Space connections.

Documented operations

92 operations. Your connection's permissions determine which operations are available. API references describe the vendor surface; they do not expand your connection's credentials or access.

92 operations listed.

Search

  • Read

    Search for libraries

    Search for libraries by name with intelligent LLM-powered ranking based on your query context.

  • Read

    Search documentation in one request

    Select up to four relevant Context7 libraries, retrieve their documentation in parallel, deduplicate and globally rerank the evidence, and return one bounded response. Optional library, version, and language values improve routing and ranking.

  • Read

    Read one web page, optionally narrowed to a question

    Reads a public web page (rendered, converted to Markdown) for an agent that already has its URL.

Metrics

  • Read

    Get library usage metrics

    Retrieve full usage metrics for a library: cumulative and daily request counters broken down by surface (web page, text docs, MCP, CLI), MCP client daily unique-user breakdown, and lifetime topic and country distributions.

Context

  • Read

    Get documentation context

    Retrieve intelligent, LLM-reranked documentation context for natural language queries. Returns the most relevant code snippets and documentation for your specific question.

Ask

  • Read

    Ask a registered website

    Answer a question from the pages of one website registered with Context7 Ask. AI agents find this endpoint in the hidden note, llms.txt section or Link header the site publishes. No API key is needed. Without query, the endpoint returns a short description of itself.

Refresh

  • Write

    Refresh a library

    Trigger a refresh of an existing library to fetch the latest documentation. Library owners have dedicated refresh limits.

Policies

  • Read

    Get teamspace policies

    Retrieve the current policy configuration for the teamspace associated with the API key. Includes source type access settings and public repository filters.

  • Write

    Update teamspace policies

    Incrementally update policy configuration for the teamspace associated with the API key. Only the fields you include in the request body are modified — omitted fields remain unchanged. For source types, use enable/disable arrays (both allowed if no overlap).

Usage

  • Read

    Get API usage

    See your requests this month, what extra requests cost your teamspace, and the teamspace's requests per day. member is the member who owns the API key and has the same numbers as the RateLimit- headers on search and docs responses. teamspace covers all members.

Add Library

  • Write

    Add a GitHub repository

    Submit a GitHub repository for documentation processing. Supports private repos via a gitToken or by connecting your GitHub account at https://context7.com/add-library.

  • Write

    Add a GitLab repository

    Submit a GitLab repository for documentation processing. Supports private repos via a gitToken or by connecting your GitLab account at https://context7.com/add-library.

  • Write

    Add a Bitbucket repository

    Submit a Bitbucket repository for documentation processing. Supports private repos via a gitToken or by connecting your Bitbucket account at https://context7.com/add-library.

  • Write

    Add from other Git providers

    Submit a repository from any Git provider not covered by the dedicated GitHub, GitLab, or Bitbucket endpoints. Supports Gitea, Forgejo, Codeberg, self-hosted GitLab, and other Git servers. For private repos, provide a personal access token via the gitToken field.

  • Write

    Add an OpenAPI specification by URL

    Submit an OpenAPI specification URL for documentation processing.

  • Write

    Upload an OpenAPI specification file

    Upload an OpenAPI specification file (JSON or YAML) for documentation processing. Requires a team project. File size limit is 10MB.

  • Write

    Upload a PDF document

    Upload a PDF file for documentation processing. Requires a teamspace. File size limit is 50MB.

  • Write

    Upload documentation files

    Upload one or more PDF or DOCX files as one library. Supports up to 50 files, 50MB per file, and 200MB total.

  • Write

    Upload a Microsoft Word document

    Upload a DOCX file for documentation processing. Requires a teamspace. File size limit is 50MB.

  • Write

    Add an llms.txt file

    Submit an llms.txt file URL for documentation processing.

  • Write

    Add a website

    Submit a website URL for documentation processing. A URL that is a version of a website library already on Context7 (for example https://docs.gitlab.com/18.4/ when /websites/gitlab exists) is added to that library as a version, and the response includes version.

  • Write

    Add a Confluence space

    Submit a Confluence space for documentation processing. Requires a connected Confluence account and a team project. You can optionally specify specific page IDs to index only a subset of the space.

  • Write

    Add Notion pages

    Submit selected Notion pages for documentation processing. Requires a connected Notion account and a team project.

Teamspaces

  • Read

    List teamspaces

    The teamspaces the caller is a member of, oldest first. An API key sees only its own teamspace.

  • Read

    Get a teamspace

    GET /v2/teamspaces/{teamspaceId}

Teamspace Admin

  • Read

    List members and invitations

    Members of the teamspace and its pending invitations. Any member can call it.

  • Read

    List rules

    Teamspace Rules that Context7 adds to answers. Any member can call it.

  • Read

    Get library policies

    Source types and public library filters of the teamspace, with the number of libraries they allow. Any member can call it.

  • Read

    List library requests

    Pending requests from members to change the library filters, newest first. Any member can call it.

  • Read

    Get usage and cost

    Daily requests, parse tokens and costs for the dashboard usage window, with the quota, plan and credit balance. Any member can call it.

  • Read

    Get the spending limit

    Any member can call it.

  • Write

    Invite a member

    Creates a pending invitation and sends the invitation email. Owners and admins only.

  • Write

    Change a member's role

    Owners and admins only. The owner's role cannot change.

  • Write

    Change an invitation's role

    Owners and admins only.

  • Write

    Create a rule

    Owners and admins only, on a teamspace whose owner has a paid plan (403 paidplanrequired).

  • Write

    Update a rule's text

    Replaces the text. Send the rule's libraryId for a library rule (the id does not move a rule between libraries). Owners and admins only, paid owner plan.

  • Write

    Update library policies

    Incremental update with the same body as PATCH /v2/policies. With dryRun: true nothing is saved and the response shows the result and its library count. Owners and admins only. Teamspace name and deletion are not part of this API.

  • Write

    Request a library filter change

    Any member can ask the owners and admins to allow, block or except a library. A repeated request returns the existing one.

  • Write

    Approve a library request

    Applies the filter change the request asks for, then removes the request. Owners and admins only.

  • Destructive

    Remove a member or leave

    Owners and admins remove other members. Any member can remove themselves (leave). The owner cannot be removed.

  • Destructive

    Cancel an invitation

    Owners and admins only.

  • Destructive

    Delete a rule

    Owners and admins only. Works on every plan.

  • Destructive

    Reject a library request

    Removes the request without changing the filters. Owners and admins only.

  • Destructive

    Set the spending limit

    Caps billed API usage per month; requests over the cap are refused. Owners and admins only.

Teamspace Libraries

  • Read

    List libraries

    The teamspace's private sources and the libraries it has claimed, each with its parse state. Use the library details for versions and the progress of a running parse.

  • Read

    Get a library

    The library's parse state, counts, versions and the active parse task. Poll it after adding or refreshing a library. Works for the teamspace's private and claimed libraries, and for any public library.

  • Read

    Get claim instructions

    The context7.json to publish to claim a library for this teamspace, with the teamspace's public key. The library need not belong to the teamspace yet. Publish the file, then call the verify operation.

  • Read

    Get library analytics

    Usage of a library the teamspace has claimed.

  • Read

    List library suggestions

    Questions the library's docs answered badly in Context7's benchmark, newest first, with what to add and the doc files to change. Only the teamspace that owns the library can read them.

  • Read

    List library benchmarks

    The library's benchmark score and its latest graded questions, newest first (up to 100): real questions asked about the library, each with the score Context7's grader gave the answer from its docs and the grader's explanation. Low scores show what the docs miss.

  • Write

    Add a library

    Submit a source for parsing; source selects its kind. Any member can add a public source; it does not join the teamspace. A private source (private: true, Confluence, Notion) joins this teamspace and needs the owner or admin role.

  • Write

    Update library settings

    Change the owner settings of a library the teamspace has claimed. The next refresh uses them.

  • Write

    Refresh a library

    Parse the library (or one branch) again from its source. Works for the teamspace's private and claimed libraries, and for any public library. Owners can refresh a limited number of times per period. Uploaded files cannot be refreshed.

  • Write

    Add a version

    Parse a tag or branch of the repository as a version of its own. The call returns once the parse has started; poll the library details.

  • Write

    Verify a claim

    Read the published context7.json. When its url and publickey match, the library becomes owned by this teamspace. Libraries on shared hosting platforms cannot be claimed automatically.

  • Destructive

    Remove a library

    For a private source: remove it from the teamspace; Context7 deletes it when no other teamspace has it. For a claimed public library: give up the claim; the library stays on Context7. Needs the owner or admin role.

  • Destructive

    Delete a version

    Delete a tag or branch version of a library the teamspace has claimed.

Docs7 Sites

  • Read

    List Docs7 sites

    The teamspace's Docs7 sites. GitHub sites are in data, sites deployed with the docs7 deploy CLI in localSites. Any member.

  • Read

    Get a Docs7 site

    One site, GitHub or CLI. Any member.

  • Read

    Check a custom domain again

    Check the custom domain now: the ownership TXT record when it waits for proof, else the DNS and certificate state. A verified path domain starts a rebuild. Owner or admin. Only for GitHub sites: a CLI site (source: "local") answers 404.

  • Read

    List deployments

    One page (20 builds, newest first) of the site's build history, with its live targets. Any member. Only for GitHub sites: a CLI site (source: "local") answers 404.

  • Read

    List CLI site deployments

    The builds and live targets of a site deployed with the docs7 deploy CLI, to follow its build state. Read the log lines of a build with get build logs. Only for CLI sites: a GitHub site answers 404. Any member.

  • Read

    Get a deployment

    One build. Any member. Only for GitHub sites: a CLI site (source: "local") answers 404.

  • Read

    Get build logs

    The log lines of one build, oldest first. Works for GitHub and CLI sites. Any member.

  • Read

    Get a build health report

    The issues one build found: page errors, broken links, unknown components and warnings. 404 when the build wrote no report. Any member. Only for GitHub sites: a CLI site (source: "local") answers 404.

  • Read

    Get a build origin

    The GitHub account that caused a webhook build and, for a pull request preview, its number and changed files. 404 when the build has no origin (for example a build started from the dashboard). Any member. Only for GitHub sites: a CLI site (source: "local") answers 404.

  • Read

    List agent runs

    Runs of one agent, newest first: improve (Context7 Agent, default), review (PR Review Agent) or watch (Code Watch Agent). Any member. Only for GitHub sites: a CLI site (source: "local") answers 404.

  • Read

    Get agent usage

    Whether the site reached its monthly agent run limit. Any member. Only for GitHub sites: a CLI site (source: "local") answers 404.

  • Read

    List feature requests

    What agents and readers asked the product for, most votes first. Works for GitHub and CLI sites. Any member.

  • Write

    Add a Docs7 site

    Connect a GitHub repository. Docs7 checks that both the Docs7 GitHub App and the caller's own GitHub account can read the repository.

  • Write

    Update a Docs7 site

    Change settings of a GitHub site. Send only the fields to change. Owners and admins can send every field; a developer can only send { "hosting": "on" } to publish a site added for the agents only. A new slug or custom domain path starts a rebuild.

  • Write

    Start a deployment

    Build production, or build a branch preview. Developers can only rebuild production or an existing preview. Owner or admin for the rest. Only for GitHub sites: a CLI site (source: "local") answers 404.

  • Write

    Ship or reopen a feature request

    Mark a request shipped with an optional docs link, or requested again. Owner or admin.

  • Destructive

    Delete a Docs7 site

    Delete a GitHub or CLI site with its deployments, previews, custom domain and analytics. Calling it again after a partial cleanup retries the cleanup. Owner or admin.

  • Destructive

    Delete a branch preview

    Remove the preview of one branch. Owner or admin. Only for GitHub sites: a CLI site (source: "local") answers 404.

  • Destructive

    Delete a feature request

    Delete a request and its votes for good. Owner or admin.

Docs7 Analytics

  • Read

    Get visitor analytics

    Visitors and page views of people (known bots left out): totals, a series per day (per hour for days=1), the top 5 pages and referrers and the top 8 countries. Works for GitHub and CLI sites. Any member.

  • Read

    Get AI crawler analytics

    Requests from AI crawlers and agents (ClaudeBot, GPTBot, ChatGPT-User and others): totals, requests per provider, a series per day with one column per provider, and distinct bots per day. Works for GitHub and CLI sites. Any member.

  • Read

    Get top AI paths

    The 5 paths that AI crawlers requested most. Works for GitHub and CLI sites. Any member.

  • Read

    Get recent AI requests

    The 10 newest AI crawler requests. Works for GitHub and CLI sites. Any member.

  • Read

    Get search and question analytics

    What readers search for, what agents ask the docs, and the assistant questions grouped by topic. Works for GitHub and CLI sites. Any member.

  • Read

    Get page feedback analytics

    Page ratings (helpful or not) from readers and agents, per page, with comments. Works for GitHub and CLI sites. Any member.

  • Read

    Get an assistant conversation

    The turns of one recorded assistant conversation. The id comes from a questions record of explore. Any member.

  • Write

    Explore analytics records

    Query the raw records of one dataset (searches, questions, ai-requests, page-views) in a time range, with filters and an optional group, 20 rows per page. Send Accept: text/csv to download up to 10,000 rows as CSV.

Ask Sites

  • Read

    List Ask sites

    The teamspace's Ask sites, oldest first, each with the setup markup to install and its index status.

  • Read

    Get an Ask site

    One site with its verification state, index status, and the exact tag and note the site must serve.

  • Read

    Get Ask site analytics

    Requests over time by client, the clients that asked, the questions with no answer (gaps), the top questions and the most recent questions.

  • Read

    List Ask site questions

    One page of the site's question log, newest first, 25 rows per page. Every filter is optional; an empty value means no filter.

  • Read

    Get the answer to an Ask question

    The text one logged question was answered with. A question that was not answered, is not known to this site, or whose answer has expired returns answer: null, not an error.

  • Write

    Add an Ask site

    Register a website. The response holds the verification tag for the site's and the hidden note for the top of . Add both to the site, deploy, then call verify. Free teamspaces allow 3 sites; paid plans have no site limit. Owner or admin.

  • Write

    Verify an Ask site

    Fetch the site's URL and look for the verification tag in and the note (with this site's endpoint) in ; both are required. A site that does not verify is not an error: the response is 200 with verified: false and the reason in data.verification.reason.

  • Destructive

    Remove an Ask site

    Remove the site, its question log and its counters. The endpoint stops answering. Owner or admin.

See How connections work for access and permissions, or browse all integrations.