Commands for integrating Model Context Protocol (MCP) servers with your AI-powered development workflow. Set up well-known MCP servers and create custom servers to extend LLM capabilities.
Simplify integration of MCP servers into your development workflow.
The MCP (Model Context Protocol) plugin helps you integrate MCP servers into your development environment. MCP is an open protocol that enables AI assistants to interact with external services, databases, and tools through a standardized interface.
This plugin provides five key commands:
- Context7 MCP Setup - Access up-to-date documentation for any library or framework
- Serena MCP Setup - Enable semantic code analysis and symbol-based operations
- Codemap CLI Setup - Enable intelligent codebase visualization and navigation
- arXiv/Paper Search MCP Setup - Search and download academic papers from multiple sources
- Build MCP - Create custom MCP servers for any service or API
Each setup command supports configuration at multiple levels:
- Project level (shared) - Configuration tracked in git, shared with team via
./CLAUDE.md - Project level (personal) - Local configuration in
./CLAUDE.local.md, not tracked in git - User level (global) - Configuration in
~/.claude/CLAUDE.md, applies to all projects
The command guides through the MCP setup process and updates the appropriate CLAUDE.md file based on your choice to ensure consistent MCP usage.
Open Claude Code in your project directory and run the following commands to setup MCP servers.
# Install the plugin
/plugin install mcp@NeoLabHQ/context-engineering-kit
# Set up documentation access for your project
> /mcp:setup-context7-mcp react, typescript, prisma
# Enable semantic code analysis
> /mcp:setup-serena-mcp
# Set up codebase visualization
> /mcp:setup-codemap-cliSet up Context7 MCP server to provide real-time access to library and framework documentation, eliminating hallucinations from outdated training data.
- Purpose - Configure documentation access for your project's technology stack
- Output - Working Context7 integration with CLAUDE.md configuration
/mcp:setup-context7-mcp [technologies]Context7 is an MCP server that fetches up-to-date documentation with code examples for any library or framework. Instead of relying on potentially outdated training data, the LLM can query actual documentation in real-time.
Benefits:
- Access latest API references and code examples
- Eliminate hallucinations about deprecated methods or incorrect signatures
- Get version-specific documentation for your exact dependencies
- Reduce back-and-forth when the LLM suggests outdated patterns
Optional list of languages and frameworks to configure documentation for. If omitted, the command analyzes your project structure to identify relevant technologies.
Examples:
react, typescript, prisma- Specific technologiesnextjs 14, tailwind- Version-specific documentation- (no arguments) - Auto-detect from project files
- Availability Check: Verifies if Context7 MCP server is already configured
- Setup Guidance: If not available, guides you through the installation process for your operating system and development environment
- Technology Analysis: Parses your input or scans project structure to identify relevant documentation
- Documentation Search: Queries Context7 to find available documentation IDs for your technologies
- CLAUDE.md Update: Adds recommended library IDs and usage instructions to your project configuration
# Configure for a React/TypeScript project
> /mcp:setup-context7-mcp react, typescript, @tanstack/react-query
# Let the command detect technologies from your project
> /mcp:setup-context7-mcp
# Specific framework versions
> /mcp:setup-context7-mcp nextjs 14, prisma 5, zodAfter setup, your CLAUDE.md will include:
### Use Context7 MCP for Loading Documentation
Context7 MCP is available to fetch up-to-date documentation with code examples.
**Recommended library IDs**:
- `react` - React core library documentation
- `typescript` - TypeScript language reference
- `prisma` - Prisma ORM documentation- Run early in project setup to establish documentation access from the start
- Include specific versions when working with rapidly evolving libraries
- Review the generated documentation IDs and remove any that are not relevant
- Re-run when adding new major dependencies to your project
Set up Serena MCP server for semantic code retrieval and symbol-based editing capabilities, enabling precise code manipulation in large codebases.
- Purpose - Enable intelligent code navigation and manipulation
- Output - Configured Serena integration with indexed project
/mcp:setup-serena-mcp [configuration preferences]Serena is an MCP server that provides semantic understanding of your codebase. Unlike text-based search (grep), Serena understands code structure - functions, classes, types, and their relationships.
Benefits:
- Find symbols by meaning, not just text matching
- Navigate complex codebases with symbol-based operations
- Make precise code changes without breaking references
- Understand code relationships and dependencies
- Refactor with confidence using semantic operations
Optional configuration preferences or client type. The command adapts its setup guidance based on your development environment (Claude Code, Claude Desktop, Cursor, VSCode, etc.).
- Availability Check: Tests if Serena tools (
find_symbol,list_symbols) are accessible - Documentation Loading: Fetches latest Serena documentation for setup guidance
- Prerequisites Verification: Confirms
uvis installed (required for running Serena) - Client Configuration: Provides setup instructions specific to your MCP client
- Project Setup: Guides through project initialization and indexing
- Connection Test: Verifies Serena tools are working correctly
- CLAUDE.md Update: Adds semantic code analysis guidelines to your project
# Standard setup with auto-detection
> /mcp:setup-serena-mcp
# Specify your client
> /mcp:setup-serena-mcp cursor
# With specific configuration needs
> /mcp:setup-serena-mcp claude-desktopAfter setup, your CLAUDE.md will include:
### Use Serena MCP for Semantic Code Analysis
Serena MCP is available for advanced code retrieval and editing capabilities.
- Use Serena's tools for precise code manipulation in structured codebases
- Prefer symbol-based operations over file-based grep/sed operations
Key usage points:
- Use `find_symbol` to locate functions, classes, and types by name
- Use `list_symbols` to explore available symbols in a file or module
- Prefer semantic operations for refactoring over text replacement- Set up Serena for large codebases where text search becomes unwieldy
- Use semantic operations for refactoring to ensure all references are updated
- Re-index the project after major structural changes
- Combine with Context7 for documentation + code understanding
- Prefer symbol-based navigation over grep for code exploration
Set up Codemap CLI for intelligent codebase visualization and navigation, providing tree views, dependency analysis, and change tracking.
- Purpose - Enable comprehensive codebase understanding and navigation
- Output - Working Codemap installation with CLAUDE.md configuration
/mcp:setup-codemap-cli [OS type or configuration preferences]Codemap is a CLI tool that provides intelligent codebase visualization and navigation. It generates tree views, tracks changes, analyzes dependencies, and integrates with Claude Code through hooks.
Benefits:
- Visualize project structure with smart filtering
- Track changes vs main branch at a glance
- Analyze file dependencies and import relationships
- Integrate with Claude Code through session hooks
- Generate city skyline visualizations of codebase
Optional OS type or configuration preferences. The command auto-detects your operating system and provides appropriate installation instructions.
Examples:
- (no arguments) - Auto-detect OS and install
macos- macOS-specific instructionswindows- Windows-specific instructions
- Installation Check: Verifies if Codemap is already installed via
codemap --version - Documentation Loading: Fetches latest Codemap documentation from GitHub
- Installation Guidance: Provides OS-specific installation commands (Homebrew for macOS/Linux, Scoop for Windows)
- Verification: Tests installation with basic commands
- CLAUDE.md Update: Adds Codemap usage instructions and hook configuration
- .gitignore Update: Adds
.codemap/directory to ignore list
# Standard setup with auto-detection
> /mcp:setup-codemap-cli
# Specify your OS
> /mcp:setup-codemap-cli macos
> /mcp:setup-codemap-cli windowsAfter setup, your CLAUDE.md will include:
## Use Codemap CLI for Codebase Navigation
Codemap CLI is available for intelligent codebase visualization and navigation.
**Required Usage** - You MUST use `codemap --diff --ref master` to research changes different from default branch, and `git diff` + `git status` to research current working state.
### Quick Start
codemap . # Project tree
codemap --only md . # Just Markdown files
codemap --diff --ref master # What changed vs master
codemap --deps . # Dependency flowThe command also configures Claude Code hooks in .claude/settings.json for automatic session context.
- Run at project start to establish codebase understanding
- Use hooks to maintain context during long coding sessions
- Combine
--diffwith--refto compare against your main branch - Use
--depsto understand module relationships before refactoring - Exclude generated files and assets with
--excludefor cleaner output
Set up the Paper Search MCP server via Docker MCP for searching and downloading academic papers from multiple sources including arXiv, PubMed, Semantic Scholar, and more.
- Purpose - Enable academic paper search and retrieval for research workflows
- Output - Working Paper Search MCP integration with CLAUDE.md configuration
/mcp:setup-arxiv-mcp [research topics or configuration]Paper Search MCP is a Docker-based MCP server that provides comprehensive access to academic literature. It aggregates search across multiple academic sources and enables downloading and reading papers directly.
Benefits:
- Search papers across arXiv, PubMed, bioRxiv, medRxiv, Semantic Scholar, and more
- Download PDFs and extract text content for analysis
- Filter by year, author, and other metadata
- Access cryptography papers via IACR
- Cross-reference with DOI via CrossRef
Optional research topics or specific paper sources to configure. The command will guide you through Docker MCP setup if not already available.
Examples:
- (no arguments) - Standard setup with all paper sources
machine learning, transformers- Mention specific research areascryptography- Focus on specific domain
- Docker Desktop - Required for Docker MCP integration
- Docker MCP Toolkit - For managing MCP servers via Docker
- Docker MCP Check: Verifies Docker MCP is available
- Server Search: Finds and adds
paper-searchMCP server from Docker catalog - Activation: Enables the server's tools in your session
- Connection Test: Verifies search functionality works
- CLAUDE.md Update: Adds paper search usage instructions
Search Tools:
search_arxiv- Search arXiv preprints (physics, math, CS, etc.)search_pubmed- Search PubMed biomedical literaturesearch_biorxiv/search_medrxiv- Search biology/medicine preprintssearch_semantic- Search Semantic Scholar with year filterssearch_google_scholar- Broad academic searchsearch_iacr- Search cryptography papers (IACR ePrint)search_crossref- Search by DOI/citation metadata
Download and Read Tools:
download_arxiv/read_arxiv_paper- Download/read arXiv PDFsdownload_biorxiv/read_biorxiv_paper- Download/read bioRxiv PDFsdownload_semantic/read_semantic_paper- Download/read via Semantic Scholar
# Standard setup
> /mcp:setup-arxiv-mcp
# After setup, search for papers
> read transformer attention mechanism paper
# Search Semantic Scholar with year filter
> search large language models papers from 2023
# Download and read a paper
> read paper 2106.12345After setup, your CLAUDE.md will include:
Comprehensive guide for creating high-quality MCP servers that enable LLMs to interact with external services through well-designed tools.
- Purpose - Build custom MCP servers for any service or API
- Output - Production-ready MCP server with tools and evaluations
/mcp:build-mcpBuild an MCP server when you need the LLM to:
- Interact with internal company APIs or services
- Access databases or data sources not available via existing MCP servers
- Integrate with third-party services (CRMs, project management, communication tools)
- Perform specialized operations unique to your domain
The command guides you through a four-phase development process:
Phase 1: Deep Research and Planning
-
Agent-Centric Design Principles
- Build workflow tools, not just API wrappers
- Optimize for limited context windows
- Design actionable error messages
- Follow natural task subdivisions
-
Protocol Study: Load MCP specification from
modelcontextprotocol.io -
Framework Selection:
- Python with FastMCP for rapid development
- TypeScript with MCP SDK for type safety
-
API Research: Exhaustively study the target API documentation
-
Implementation Planning:
- Tool selection and prioritization
- Shared utilities design
- Input/output schema design
- Error handling strategy
Phase 2: Implementation
- Project Structure: Set up according to language-specific best practices
- Core Infrastructure: Build shared utilities first (API helpers, error handling, formatting)
- Tool Implementation: Systematically implement each planned tool
- Annotations: Add proper tool hints (readOnly, destructive, idempotent)
Phase 3: Review and Refine
- Code Quality Review: DRY principle, composability, consistency
- Testing: Verify syntax and imports (note: MCP servers are long-running, use evaluation harness)
- Quality Checklist: Language-specific verification
Phase 4: Create Evaluations
- Tool Inspection: Understand available capabilities
- Content Exploration: Use read-only operations to explore data
- Question Generation: Create 10 complex, realistic evaluation questions
- Answer Verification: Verify each answer is correct and stable
# Start building an MCP server
> /mcp:build-mcp
# The command will guide you through:
# 1. Understanding your integration requirements
# 2. Choosing Python or TypeScript
# 3. Designing tools for your use case
# 4. Implementing with best practices
# 5. Testing and evaluation