YOUR FIRST WORKFLOW

Connect your first MCP server

Ask your coding AI to connect one documentation source, then check a real lookup.

Basic4 stepsSewon Kim
What you will end up with

One working MCP connection and a documentation answer you can verify.

Ask AI in one sentence

Copy this request
Help me connect Context7 to my current coding tool using its official OAuth instructions, preserve my existing connections, guide me through sign-in, and verify one documentation lookup with the actual tool call and source link.

MCP lets a coding tool use an extra service. This example connects Context7 for library documentation; use it when you need that source, rather than installing a whole collection of servers. The service receives the lookup and your AI tool processes its response, so use a public, non-sensitive question.

Before you start

  • An MCP-compatible coding tool you can already use, with permission to add a connection.
  • Internet access and a Context7 account for the OAuth example.
  • One public library question; no private project data is needed.
01

Ask AI to prepare the connection

Send the one-sentence request above in the coding tool you already use.

Your part

Tell the AI which application you are using if it cannot identify it. Review the single connection it proposes.

AI / app does

Check the current official instructions and prepare the configuration, or explain the manual action needed.

You should see

The proposed connection is Context7; existing connections are preserved.

02

Finish sign-in

You handle the account sign-in in your browser.

Your part

Use the connection’s authentication action and complete the Context7 sign-in. Return to your coding tool.

AI / app does

Show whether the connection is ready and whether its tools are available.

You should see

The connection is available; a sign-in or connection error is resolved before continuing.

03

Try one documentation question

Ask for an actual lookup, then open its source.

Your part

Ask: Use Context7 to find the documentation for Python pathlib.Path.read_text; show the library you selected, the tool calls, and a source link, and do not edit my files.

AI / app does

Look up the library and its documentation; say if it cannot find the requested material.

You should see

You can inspect a Context7 tool response and a relevant source; a confident answer without a call is not this check.

04

Keep it or disconnect

Finish with only the connections you need.

Your part

Keep the connection if useful; otherwise disable or remove this entry and sign out or revoke its grant where supported.

AI / app does

Help verify that the removed connection is unavailable.

You should see

You know whether it is still enabled; disconnecting does not erase earlier conversation content.

Ready to finish?

  • I inspected an actual MCP tool call, not just a connected badge.
  • I opened the returned source and checked whether it answers my question.
  • I know where the lookup goes and how to disable the connection.

Optional help & next steps

Manual: Context7 in Cursor

In your practice project, open .cursor/mcp.json. Add the context7 entry inside the existing mcpServers object; preserve other entries. The example below is for a new file, not a replacement for an existing configuration.

In Cursor’s MCP controls, enable the connection and complete its sign-in action. This remote OAuth route does not launch a local Node.js server. Then use the question in step 3. Other clients have different configuration formats.

Cursor project .cursor/mcp.json — new-file example
{
  "mcpServers": {
    "context7": {
      "url": "https://mcp.context7.com/mcp/oauth"
    }
  }
}
Optional: read a disposable file with Filesystem MCP

This is a separate local exercise in Cursor on Windows. It is unnecessary if native file access already meets your goal. Install a supported Node.js release satisfying the package’s current Node.js 24-or-later requirement, then reopen Cursor.

Ask AI to create a new mcp-lab practice folder with a files subfolder and a notes.txt containing: This is a disposable MCP test file. Open mcp-lab in Cursor. Use the exact absolute path to files below, replacing YOUR_WINDOWS_USER; this example uses read-only mode.

Add the filesystem entry to .cursor/mcp.json, preserving other entries. The first launch can download the npm package. This example uses the current package rather than a pinned release; check its runtime and version when repeating it.

Enable it and ask: Use only Filesystem MCP to list its allowed directories and read notes.txt; do not use native file tools. Inspect the named call and the returned sentence. To finish, remove this entry and confirm its process stops.

The folder restriction and read-only setting apply to this server, not the coding tool’s other capabilities. Local server execution does not keep returned file content away from a cloud model.

Cursor on Windows — new-file example; replace the path
{
  "mcpServers": {
    "filesystem": {
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "--read-only",
        "C:\\Users\\YOUR_WINDOWS_USER\\mcp-lab\\files"
      ]
    }
  }
}
If the connection or lookup fails

Give AI the exact error without credentials. Check client support, sign-in, network access, and account limits. For a local server, also check the runtime and absolute folder path.

A successful connection may still lack the library or version you need. Use the official library documentation directly in that case; do not let the AI claim a lookup it did not perform.

Sources, cost & review notes

Based on official documentation checked November 6, 2026; these client connections and prompts were not executed for this guide.

Your coding tool’s usage and Context7’s current account limits apply separately. A remote documentation connection is not an offline workflow or a promise of unlimited free use.

Based on official documentation checked November 6, 2026; these client connections and prompts were not executed for this guide.