Skip to main content
Glama
React Native SME Documentation MCP Server

React Native SME Documentation MCP Server

by cristminix

šŸš€ React Native SME Documentation MCP Server

A powerful Model Context Protocol (MCP) server that gives your AI assistants instant access to comprehensive React Native SME documentation with smart fuzzy search capabilities and fast retrieval for an enhanced mobile development workflow.

šŸ“Š Coverage: 3,090+ sections | šŸ“¦ Documentation Source: Local docs/llms-full.txt (3.9MB)


✨ Key Features

šŸŽÆ Feature

šŸ“ Description

šŸš€ Benefits

šŸ” Smart Search

Fuzzy search through 3,090+ documentation sections powered by Fuse.js

Find solutions, components, hooks, and guides even with partial queries

šŸ“– Precise Retrieval

Retrieve exact sections by title or path identifier

Get targeted documentation without cluttering AI context

šŸ“‹ Section Listing

List available sections with optional category filtering

Explore topics, modules, and architecture guides

⚔ Fast & Lightweight

TypeScript-powered running over stdio

Zero-lag responses for AI code assistants

šŸ“¦ Zero External Dependency

Bundled with local documentation

Operates completely offline without external API keys


Related MCP server: expo-docs

šŸ“‹ Prerequisites


šŸ›  Installation & Setup

1. Clone and Install

# Clone the repository
git clone https://github.com/cristminix/react-native-sme-docs-mcp.git
cd react-native-sme-docs-mcp

# Install dependencies using Yarn
yarn install

# Build the TypeScript code
yarn build

2. Documentation

Documentation files are located in ./docs/:

  • docs/llms-full.txt (default full documentation, ~3.9MB, 3,090+ sections)

  • docs/llms.txt (summary documentation)

Optional: Point to a custom documentation file using an environment variable:

export LLM_DOCS_PATH="/absolute/path/to/your/documentation.txt"

āš™ļø Configuration for AI Assistants

Replace /absolute/path/to/react-native-sme-docs-mcp with your actual project location.

🟢 Claude Code CLI

Add to your ~/.claude/claude_code_config.json or project-level .claude/mcp.json:

{
  "mcpServers": {
    "react-native-sme-docs": {
      "command": "node",
      "args": ["/absolute/path/to/react-native-sme-docs-mcp/dist/index.js"],
      "env": {
        "LLM_DOCS_PATH": "/absolute/path/to/react-native-sme-docs-mcp/docs/llms-full.txt"
      }
    }
  }
}

šŸ”· Cursor IDE

Add to your Cursor settings (settings.json):

{
  "mcp": {
    "mcpServers": {
      "react-native-sme-docs": {
        "command": "node",
        "args": ["/absolute/path/to/react-native-sme-docs-mcp/dist/index.js"],
        "env": {
          "LLM_DOCS_PATH": "/absolute/path/to/react-native-sme-docs-mcp/docs/llms-full.txt"
        }
      }
    }
  }
}

🌊 Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "react-native-sme-docs": {
      "command": "node",
      "args": ["/absolute/path/to/react-native-sme-docs-mcp/dist/index.js"],
      "env": {
        "LLM_DOCS_PATH": "/absolute/path/to/react-native-sme-docs-mcp/docs/llms-full.txt"
      }
    }
  }
}

šŸ”§ Available MCP Tools

This MCP server provides 3 core tools:

šŸ” 1. search_docs - Fuzzy Documentation Search

Searches documentation sections using fuzzy matching.

Parameters:

  • query (string, required): The search query (e.g. "navigation", "flatlist performance", "reanimated")

  • limit (number, optional): Maximum results to return (default: 5)

Example Input:

{
  "name": "search_docs",
  "arguments": {
    "query": "state management hooks",
    "limit": 3
  }
}

šŸ“– 2. get_section - Precise Section Retrieval

Retrieves the full content of a specific documentation section matching the title or path identifier.

Parameters:

  • identifier (string, required): Section title or path identifier

Example Input:

{
  "name": "get_section",
  "arguments": {
    "identifier": "Performance Optimization"
  }
}

šŸ“‹ 3. list_sections - Browse Documentation Sections

Lists available sections, optionally filtered by keyword or category.

Parameters:

  • category (string, optional): Filter sections by specific keyword or path prefix

Example Input:

{
  "name": "list_sections",
  "arguments": {
    "category": "components"
  }
}

šŸŽÆ Natural Language Prompts for AI

After configuring the MCP server, you can ask your AI assistant questions naturally:

  • šŸ’¬ "Search React Native SME docs for FlatList performance optimization techniques."

  • šŸ’¬ "Look up best practices for custom hooks in React Native."

  • šŸ’¬ "Get the documentation section for deep linking and navigation."

  • šŸ’¬ "List all documentation sections related to state management."


šŸ“ Project Structure

react-native-sme-docs-mcp/
ā”œā”€ā”€ .agents/plugins/          # Agent plugin configuration
ā”œā”€ā”€ docs/
│   ā”œā”€ā”€ llms-full.txt         # Complete React Native documentation (3,090+ sections)
│   └── llms.txt              # Documentation overview
ā”œā”€ā”€ mcp-config-files/         # MCP sample configuration templates
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ config.ts             # Configuration loader
│   ā”œā”€ā”€ doc-loader.ts         # Markdown & txt documentation parser
│   ā”œā”€ā”€ index.ts              # Entrypoint
│   ā”œā”€ā”€ search.ts             # Fuse.js search engine
│   ā”œā”€ā”€ server.ts             # MCP server setup & lifecycle
│   ā”œā”€ā”€ tools.ts              # MCP tool definitions & handlers
│   └── types.ts              # TypeScript interfaces & types
ā”œā”€ā”€ config.json               # Server configuration defaults
ā”œā”€ā”€ package.json              # Project dependencies & scripts
ā”œā”€ā”€ tsconfig.json             # TypeScript compiler settings
ā”œā”€ā”€ LICENSE                   # License file
└── README.md                 # Project documentation

āš™ļø Configuration (config.json)

Customize server behavior via config.json:

{
  "searchDefaults": {
    "maxResults": 5,
    "threshold": 0.4,
    "minMatchCharLength": 3
  },
  "listDefaults": {
    "maxSections": 50
  },
  "server": {
    "name": "react-native-sme-docs-mcp",
    "version": "1.0.0"
  },
  "documentation": {
    "previewLength": 500,
    "fallbackPaths": [
      "docs/llms-full.txt",
      "docs/llms.txt"
    ]
  }
}

🚧 Development

# Run in development mode
yarn dev

# Run in watch mode (auto-reload on changes)
yarn watch

# Build TypeScript to dist/
yarn build

# Test MCP server manually via stdin
echo '{"jsonrpc":"2.0","method":"tools/list","id":1}' | node dist/index.js

šŸ“ License

This project is licensed under the MIT License.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Provides AI agents with accurate, version-aware documentation for React Native, Expo, React Navigation, and Ignite by automatically detecting project dependencies and fetching matching documentation.
      12
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables fast, offline search and retrieval of Expo documentation from local .mdx files, with tools for searching, getting content, listing sections, API references, and quick start guides.
      26 npm
      17
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to search and read offline documentation from synced libraries via MCP tools, providing hybrid keyword and semantic search without network calls.
      1
      MIT