MCPInstall

get-code-context-exa

Code context using Exa. Finds real snippets and docs from GitHub, StackOverflow, and technical docs. Use when searching for code examples, API syntax, library documentation, or debugging help.

Installs
49
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/exa-labs/exa-mcp-server --skill get-code-context-exa
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads get-code-context-exa automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Code Context (Exa)

Tool Restriction (Critical)

ONLY use get_code_context_exa. Do NOT use other Exa tools.

Token Isolation (Critical)

Never run Exa in main context. Always spawn Task agents:

  • Agent calls get_code_context_exa
  • Agent extracts the minimum viable snippet(s) + constraints
  • Agent deduplicates near-identical results (mirrors, forks, repeated StackOverflow answers) before presenting
  • Agent returns copyable snippets + brief explanation
  • Main context stays clean regardless of search volume

When to Use

Use this tool for ANY programming-related request:

  • API usage and syntax
  • SDK/library examples
  • config and setup patterns
  • framework "how to" questions
  • debugging when you need authoritative snippets

Inputs (Supported)

get_code_context_exa supports:

  • query (string, required)
  • tokensNum (number, optional; default ~5000; typical range 1000–50000)

Query Writing Patterns (High Signal)

To reduce irrelevant results and cross-language noise:

  • Always include the programming language in the query.
    • Example: use "Go generics" instead of just "generics".
  • When applicable, also include framework + version (e.g., "Next.js 14", "React 19", "Python 3.12").
  • Include exact identifiers (function/class names, config keys, error messages) when you have them.

Dynamic Tuning

Token strategy:

  • Focused snippet needed → tokensNum 1000–3000
  • Most tasks → tokensNum 5000
  • Complex integration → tokensNum 10000–20000
  • Only go larger when necessary (avoid dumping large context)

Output Format (Recommended)

Return:

  1. Best minimal working snippet(s) (keep it copy/paste friendly)
  2. Notes on version / constraints / gotchas
  3. Sources (URLs if present in returned context)

Before presenting:

  • Deduplicate similar results and keep only the best representative snippet per approach.

MCP Configuration

{
  "servers": {
    "exa": {
      "type": "http",
      "url": "https://mcp.exa.ai/mcp?tools=get_code_context_exa"
    }
  }
}

FAQ

What does the get-code-context-exa skill do?

Code context using Exa. Finds real snippets and docs from GitHub, StackOverflow, and technical docs. Use when searching for code examples, API syntax, library documentation, or debugging help.

How do I install get-code-context-exa?

Run npx skills add https://github.com/exa-labs/exa-mcp-server --skill get-code-context-exa in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/get-code-context-exa/ (personal) or .claude/skills/get-code-context-exa/ (project).

Which AI agents can use get-code-context-exa?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is get-code-context-exa safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains get-code-context-exa?

It is published by exa-labs in exa-labs/exa-mcp-server. It has 49 recorded installs.

More from exa-labs/exa-mcp-server

View all →

search

exa-labs/exa-mcp-server

Deep research powered by Exa. Use for lead generation, literature reviews, deep dives, competitive analysis, or any query where one search falls short, including phrases like 'research this', 'find everything about', 'find me all', or 'deep dive on'.

exa-agent

exa-labs/exa-mcp-server

Open the skill to read its SKILL.md instructions.

Backend & APIs173 installs

company-research

exa-labs/exa-mcp-server

Company research using Exa search. Finds company info, competitors, news, financials, LinkedIn profiles, builds company lists. Use when researching companies, doing competitor analysis, market research, or building company lists.

web-search-advanced-research-paper

exa-labs/exa-mcp-server

Search for research papers and academic content using Exa advanced search. Full filter support including date ranges and text filtering. Use when searching for academic papers, arXiv preprints, or scientific research.

people-research

exa-labs/exa-mcp-server

People research using Exa search. Finds LinkedIn profiles, professional backgrounds, experts, team members, and public bios across the web. Use when searching for people, finding experts, or looking up professional profiles.

Search for financial reports using Exa advanced search. Near-full filter support for finding SEC filings, earnings reports, and financial documents. Use when searching for 10-K filings, quarterly earnings, or annual reports.

Popular docs & writing skills

View category →

grill-with-docs

mattpocock/skills

A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

Docs & Writing1.2M installs

lark-markdown

open.feishu.cn

飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。

Docs & Writing778.7K installs

writing-beats

mattpocock/skills

Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.

Docs & Writing490.7K installs

writing-shape

mattpocock/skills

Writing, exploit: shape raw material into an article, paragraph by paragraph.

Docs & Writing490.2K installs

writing-fragments

mattpocock/skills

Writing, explore: mine raw fragments, no structure yet.

Docs & Writing489.6K installs

writing-for-agents

mattpocock/skills

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

Docs & Writing479.3K installs