@context5m/mcp
v0.1.5
Published
Context5M MCP server
Maintainers
Readme

Context5M MCP - Up-to-date FiveM Scripts Docs For Any Prompt
❌ Without Context5M
LLMs rely on outdated or generic information about the libraries you use. You get:
- ❌ Code examples are outdated and based on year-old training data
- ❌ Hallucinated APIs that don't even exist
- ❌ Generic answers for old package versions
✅ With Context5M
Get up‑to‑date FiveM scripts documentation and export examples directly in your prompts — sourced from vendor docs (e.g., Wasabi, rcore, Quasar, CodeM, gpScripts, Evo, 0BugScripts) and organized by script.
What you get
- Fresh docs: Context5M fetches current pages at query time (no year‑old training data).
- Script awareness: filter by specific script within a vendor (e.g.,
wasabi_ambulance). - Topic focus: ask for "install", "exports", "events", etc. and receive only the relevant sections.
- LLM‑ready blocks: clean titles, optional code blocks, and sources you can click.
Quick usage patterns
- Ask naturally and add “use context5m” so your client invokes the MCP server.
- Narrow by script when you know it (e.g., "Show exports for wasabi_ambulance — use context5m").
- Prefer concise topics like "installation", "configuration", "exports", "events" for tightly scoped answers.
Remote or local
- Remote MCP server:
https://mcp.context5m.com/mcp(recommended; zero setup) - Local MCP server (npx):
npx -y @context5m/mcp
Authentication (optional)
- Provide a Context5M API key to raise limits. You can create one in the portal Dashboard. Most clients let you set a header or
--api-keyargument.
📚 Adding Projects
Check out our project addition guide to learn how to add (or update) your favorite libraries to Context5M.
🛠️ Installation
Requirements
- Node.js >= v18.0.0
- Cursor, Claude Code, VSCode, Windsurf or another MCP Client
- Context5M API Key (Optional for higher rate limits) (Get yours by creating an account at context5m.com/dashboard)
To install Context5M MCP Server for any client automatically via Smithery:
npx -y @smithery/cli@latest install @context5m/mcp --client <CLIENT_NAME> --key <YOUR_SMITHERY_KEY>You can find your Smithery key in the Smithery.ai webpage.
Go to: Settings -> Cursor Settings -> MCP -> Add new global MCP server
Pasting the following configuration into your Cursor ~/.cursor/mcp.json file is the recommended approach. You may also install in a specific project by creating .cursor/mcp.json in your project folder. See Cursor MCP docs for more info.
Since Cursor 1.0, you can click the install button below for instant one-click installation.
Cursor Remote Server Connection
{
"mcpServers": {
"context5m": {
"url": "https://mcp.context5m.com/mcp",
"headers": {
"CONTEXT5M_API_KEY": "YOUR_API_KEY"
}
}
}
}Cursor Local Server Connection
{
"mcpServers": {
"context5m": {
"command": "npx",
"args": ["-y", "@context5m/mcp", "--api-key", "YOUR_API_KEY"]
}
}
}Run this command. See Claude Code MCP docs for more info.
Claude Code Remote Server Connection
claude mcp add --transport http context5m https://mcp.context5m.com/mcp --header "CONTEXT5M_API_KEY: YOUR_API_KEY"Claude Code Local Server Connection
claude mcp add context5m -- npx -y @context5m/mcp --api-key YOUR_API_KEYAdd this to your Windsurf MCP config file. See Windsurf MCP docs for more info.
Windsurf Remote Server Connection
{
"mcpServers": {
"context5m": {
"serverUrl": "https://mcp.context5m.com/mcp",
"headers": {
"CONTEXT5M_API_KEY": "YOUR_API_KEY"
}
}
}
}Windsurf Local Server Connection
{
"mcpServers": {
"context5m": {
"command": "npx",
"args": ["-y", "@context5m/mcp", "--api-key", "YOUR_API_KEY"]
}
}
}Add this to your VS Code MCP config file. See VS Code MCP docs for more info.
VS Code Remote Server Connection
"mcp": {
"servers": {
"context5m": {
"type": "http",
"url": "https://mcp.context5m.com/mcp",
"headers": {
"CONTEXT5M_API_KEY": "YOUR_API_KEY"
}
}
}
}VS Code Local Server Connection
"mcp": {
"servers": {
"context5m": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@context5m/mcp", "--api-key", "YOUR_API_KEY"]
}
}
}You can easily install Context5M through the Cline MCP Server Marketplace by following these instructions:
- Open Cline.
- Click the hamburger menu icon (☰) to enter the MCP Servers section.
- Use the search bar within the Marketplace tab to find Context5M.
- Click the Install button.
It can be installed via Zed Extensions or you can add this to your Zed settings.json. See Zed Context Server docs for more info.
{
"context_servers": {
"Context5M": {
"command": {
"path": "npx",
"args": ["-y", "@context5m/mcp", "--api-key", "YOUR_API_KEY"]
},
"settings": {}
}
}
}To configure Context5M MCP in Augment Code, you can use either the graphical interface or manual configuration.
A. Using the Augment Code UI
Click the hamburger menu.
Select Settings.
Navigate to the Tools section.
Click the + Add MCP button.
Enter the following command:
npx -y @context5m/mcp@latestName the MCP: Context5M.
Click the Add button.
Once the MCP server is added, you can start using Context5M's up-to-date code documentation features directly within Augment Code.
B. Manual Configuration
- Press Cmd/Ctrl Shift P or go to the hamburger menu in the Augment panel
- Select Edit Settings
- Under Advanced, click Edit in settings.json
- Add the server configuration to the
mcpServersarray in theaugment.advancedobject
"augment.advanced": {
"mcpServers": [
{
"name": "context5m",
"command": "npx",
"args": ["-y", "@context5m/mcp", "--api-key", "YOUR_API_KEY"]
}
]
}Once the MCP server is added, restart your editor. If you receive any errors, check the syntax to make sure closing brackets or commas are not missing.
Add this to your Roo Code MCP configuration file. See Roo Code MCP docs for more info.
Roo Code Remote Server Connection
{
"mcpServers": {
"context5m": {
"type": "streamable-http",
"url": "https://mcp.context5m.com/mcp"
}
}
}Roo Code Local Server Connection
{
"mcpServers": {
"context5m": {
"command": "npx",
"args": ["-y", "@context5m/mcp", "--api-key", "YOUR_API_KEY"]
}
}
}See Gemini CLI Configuration for details.
- Open the Gemini CLI settings file. The location is
~/.gemini/settings.json(where~is your home directory). - Add the following to the
mcpServersobject in yoursettings.jsonfile:
{
"mcpServers": {
"context5m": {
"httpUrl": "https://mcp.context5m.com/mcp",
"headers": {
"CONTEXT5M_API_KEY": "YOUR_API_KEY"
}
}
}
}Or, for a local server:
{
"mcpServers": {
"context5m": {
"command": "npx",
"args": ["-y", "@context5m/mcp", "--api-key", "YOUR_API_KEY"]
}
}
}If the mcpServers object does not exist, create it.
Remote Server Connection
Open Claude Desktop and navigate to Settings > Connectors > Add Custom Connector. Enter the name as Context5M and the remote MCP server URL as https://mcp.context5m.com/mcp.
Local Server Connection
Open Claude Desktop developer settings and edit your claude_desktop_config.json file to add the following configuration. See Claude Desktop MCP docs for more info.
{
"mcpServers": {
"context5m": {
"command": "npx",
"args": ["-y", "@context5m/mcp", "--api-key", "YOUR_API_KEY"]
}
}
}Add this to your Opencode configuration file. See Opencode MCP docs docs for more info.
Opencode Remote Server Connection
"mcp": {
"context5m": {
"type": "remote",
"url": "https://mcp.context5m.com/mcp",
"headers": {
"CONTEXT5M_API_KEY": "YOUR_API_KEY"
},
"enabled": true
}
}Opencode Local Server Connection
{
"mcp": {
"context5m": {
"type": "local",
"command": ["npx", "-y", "@context5m/mcp", "--api-key", "YOUR_API_KEY"],
"enabled": true
}
}
}See OpenAI Codex for more information.
Add the following configuration to your OpenAI Codex MCP server settings:
[mcp_servers.context5m]
args = ["-y", "@context5m/mcp", "--api-key", "YOUR_API_KEY"]
command = "npx"See JetBrains AI Assistant Documentation for more details.
- In JetBrains IDEs go to
Settings->Tools->AI Assistant->Model Context Protocol (MCP) - Click
+ Add. - Click on
Commandin the top-left corner of the dialog and select the As JSON option from the list - Add this configuration and click
OK
{
"mcpServers": {
"context5m": {
"command": "npx",
"args": ["-y", "@context5m/mcp", "--api-key", "YOUR_API_KEY"]
}
}
}- Click
Applyto save changes. - The same way context5m could be added for JetBrains Junie in
Settings->Tools->Junie->MCP Settings
See Kiro Model Context Protocol Documentation for details.
- Navigate
Kiro>MCP Servers - Add a new MCP server by clicking the
+ Addbutton. - Paste the configuration given below:
{
"mcpServers": {
"Context5M": {
"command": "npx",
"args": ["-y", "@context5m/mcp", "--api-key", "YOUR_API_KEY"],
"env": {},
"disabled": false,
"autoApprove": []
}
}
}- Click
Saveto apply the changes.
Use the Add manually feature and fill in the JSON configuration information for that MCP server. For more details, visit the Trae documentation.
Trae Remote Server Connection
{
"mcpServers": {
"context5m": {
"url": "https://mcp.context5m.com/mcp"
}
}
}Trae Local Server Connection
{
"mcpServers": {
"context5m": {
"command": "npx",
"args": ["-y", "@context5m/mcp", "--api-key", "YOUR_API_KEY"]
}
}
}Use these alternatives to run the local Context5M MCP server with other runtimes. These examples work for any client that supports launching a local MCP server via command + args.
Bun
{
"mcpServers": {
"context5m": {
"command": "bunx",
"args": ["-y", "@context5m/mcp", "--api-key", "YOUR_API_KEY"]
}
}
}Deno
{
"mcpServers": {
"context5m": {
"command": "deno",
"args": [
"run",
"--allow-env=NO_DEPRECATION,TRACE_DEPRECATION",
"--allow-net",
"npm:@context5m/mcp"
]
}
}
}If you prefer to run the MCP server in a Docker container:
Build the Docker Image:
First, create a
Dockerfilein the project root (or anywhere you prefer):FROM node:18-alpine WORKDIR /app # Install the latest version globally RUN npm install -g @context5m/mcp # Expose default port if needed (optional, depends on MCP client interaction) # EXPOSE 3000 # Default command to run the server CMD ["context5m-mcp"]Then, build the image using a tag (e.g.,
context5m-mcp). Make sure Docker Desktop (or the Docker daemon) is running. Run the following command in the same directory where you saved theDockerfile:docker build -t context5m-mcp .Configure Your MCP Client:
Update your MCP client's configuration to use the Docker command.
Example for a cline_mcp_settings.json:
{ "mcpServers": { "Сontext7": { "autoApprove": [], "disabled": false, "timeout": 60, "command": "docker", "args": ["run", "-i", "--rm", "context5m-mcp"], "transportType": "stdio" } } }Note: This is an example configuration. Please refer to the specific examples for your MCP client (like Cursor, VS Code, etc.) earlier in this README to adapt the structure (e.g.,
mcpServersvsservers). Also, ensure the image name inargsmatches the tag used during thedocker buildcommand.
Install the context5m.dxt file under the dxt folder and add it to your client. For more information please check out the desktop extensions docs.
The configuration on Windows is slightly different compared to Linux or macOS (Cline is used in the example). The same principle applies to other editors; refer to the configuration of command and args.
{
"mcpServers": {
"github.com/upstash/mcp": {
"command": "cmd",
"args": ["/c", "npx", "-y", "@context5m/mcp", "--api-key", "YOUR_API_KEY"],
"disabled": false,
"autoApprove": []
}
}
}Add this to your Amazon Q Developer CLI configuration file. See Amazon Q Developer CLI docs for more details.
{
"mcpServers": {
"context5m": {
"command": "npx",
"args": ["-y", "@context5m/mcp", "--api-key", "YOUR_API_KEY"]
}
}
}See Warp Model Context Protocol Documentation for details.
- Navigate
Settings>AI>Manage MCP servers. - Add a new MCP server by clicking the
+ Addbutton. - Paste the configuration given below:
{
"Context5M": {
"command": "npx",
"args": ["-y", "@context5m/mcp", "--api-key", "YOUR_API_KEY"],
"env": {},
"working_directory": null,
"start_on_launch": true
}
}- Click
Saveto apply the changes.
Using Context5M with Copilot Coding Agent
Add the following configuration to the mcp section of your Copilot Coding Agent configuration file Repository->Settings->Copilot->Coding agent->MCP configuration:
{
"mcpServers": {
"context5m": {
"type": "http",
"url": "https://mcp.context5m.com/mcp",
"headers": {
"CONTEXT5M_API_KEY": "YOUR_API_KEY"
},
"tools": ["get-library-docs", "resolve-library-id"]
}
}
}For more information, see the official GitHub documentation.
See LM Studio MCP Support for more information.
One-click install:
Manual set-up:
- Navigate to
Program(right side) >Install>Edit mcp.json. - Paste the configuration given below:
{
"mcpServers": {
"Context5M": {
"command": "npx",
"args": ["-y", "@context5m/mcp", "--api-key", "YOUR_API_KEY"]
}
}
}- Click
Saveto apply the changes. - Toggle the MCP server on/off from the right hand side, under
Program, or by clicking the plug icon at the bottom of the chat box.
You can configure Context5M MCP in Visual Studio 2022 by following the Visual Studio MCP Servers documentation.
Add this to your Visual Studio MCP config file (see the Visual Studio docs for details):
{
"inputs": [],
"servers": {
"context5m": {
"type": "http",
"url": "https://mcp.context5m.com/mcp",
"headers": {
"CONTEXT5M_API_KEY": "YOUR_API_KEY"
}
}
}
}Or, for a local server:
{
"mcp": {
"servers": {
"context5m": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@context5m/mcp", "--api-key", "YOUR_API_KEY"]
}
}
}
}For more information and troubleshooting, refer to the Visual Studio MCP Servers documentation.
Add this to your Crush configuration file. See Crush MCP docs for more info.
Crush Remote Server Connection (HTTP)
{
"$schema": "https://charm.land/crush.json",
"mcp": {
"context5m": {
"type": "http",
"url": "https://mcp.context5m.com/mcp",
"headers": {
"CONTEXT5M_API_KEY": "YOUR_API_KEY"
}
}
}
}Crush Local Server Connection
{
"$schema": "https://charm.land/crush.json",
"mcp": {
"context5m": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@context5m/mcp", "--api-key", "YOUR_API_KEY"]
}
}
}Open the "Settings" page of the app, navigate to "Plugins," and enter the following JSON:
{
"mcpServers": {
"context5m": {
"command": "npx",
"args": ["-y", "@context5m/mcp", "--api-key", "YOUR_API_KEY"]
}
}
}Once saved, enter in the chat get-library-docs followed by your Context5M documentation ID (e.g., get-library-docs /nuxt/ui). More information is available on BoltAI's Documentation site. For BoltAI on iOS, see this guide.
Edit your Rovo Dev CLI MCP config by running the command below -
acli rovodev mcpExample config -
Remote Server Connection
{
"mcpServers": {
"context5m": {
"url": "https://mcp.context5m.com/mcp"
}
}
}Local Server Connection
{
"mcpServers": {
"context5m": {
"command": "npx",
"args": ["-y", "@context5m/mcp", "--api-key", "YOUR_API_KEY"]
}
}
}To configure Context5M MCP in Zencoder, follow these steps:
- Go to the Zencoder menu (...)
- From the dropdown menu, select Agent tools
- Click on the Add custom MCP
- Add the name and server configuration from below, and make sure to hit the Install button
{
"command": "npx",
"args": ["-y", "@context5m/mcp", "--api-key", "YOUR_API_KEY"]
}Once the MCP server is added, you can easily continue using it.
See Qodo Gen docs for more details.
- Open Qodo Gen chat panel in VSCode or IntelliJ.
- Click Connect more tools.
- Click + Add new MCP.
- Add the following configuration:
Qodo Gen Local Server Connection
{
"mcpServers": {
"context5m": {
"command": "npx",
"args": ["-y", "@context5m/mcp", "--api-key", "YOUR_API_KEY"]
}
}
}Qodo Gen Remote Server Connection
{
"mcpServers": {
"context5m": {
"url": "https://mcp.context5m.com/mcp"
}
}
}See Local and Remote MCPs for Perplexity for more information.
- Navigate
Perplexity>Settings - Select
Connectors. - Click
Add Connector. - Select
Advanced. - Enter Server Name:
Context5M - Paste the following JSON in the text area:
{
"args": ["-y", "@context5m/mcp", "--api-key", "YOUR_API_KEY"],
"command": "npx",
"env": {}
}- Click
Save.
🔨 Available Tools
Context5M MCP provides the following tools that LLMs can use:
resolve-library-id: Resolves a general library name into a Context5M-compatible library ID.libraryName(required): The name of the library to search for
get-library-docs: Fetches documentation for a library using a Context5M-compatible library ID.context5mCompatibleLibraryID(required): Exact Context5M-compatible library ID (e.g.,/mongodb/docs,/vercel/next.js)topic(optional): Focus the docs on a specific topic (e.g., "routing", "hooks")tokens(optional, default 10000): Max number of tokens to return. Values less than the default value of 10000 are automatically increased to 10000.
🛟 Tips
Add a Rule
If you don’t want to add
use context5mto every prompt, you can define a simple rule in your.windsurfrulesfile in Windsurf or fromCursor Settings > Rulessection in Cursor (or the equivalent in your MCP client) to auto-invoke Context5M on any code question:[[calls]] match = "when the user requests code examples, setup or configuration steps, or library/API documentation" tool = "context5m"From then on you’ll get Context5M’s docs in any related conversation without typing anything extra. You can add your use cases to the match part.
Use Library Id
If you already know exactly which library you want to use, add its Context5M ID to your prompt. That way, Context5M MCP server can skip the library-matching step and directly continue with retrieving docs.
implement basic authentication with supabase. use library /supabase/supabase for api and docsThe slash syntax tells the MCP tool exactly which library to load docs for.
HTTPS Proxy
If you are behind an HTTP proxy, Context5M uses the standard https_proxy / HTTPS_PROXY environment variables.
🚨 Troubleshooting
If you encounter ERR_MODULE_NOT_FOUND, try using bunx instead of npx:
{
"mcpServers": {
"context5m": {
"command": "bunx",
"args": ["-y", "@context5m/mcp"]
}
}
}This often resolves module resolution issues in environments where npx doesn't properly install or resolve packages.
For errors like Error: Cannot find module 'uriTemplate.js', try the --experimental-vm-modules flag:
{
"mcpServers": {
"context5m": {
"command": "npx",
"args": ["-y", "--node-options=--experimental-vm-modules", "@context5m/[email protected]"]
}
}
}Use the --experimental-fetch flag to bypass TLS-related problems:
{
"mcpServers": {
"context5m": {
"command": "npx",
"args": ["-y", "--node-options=--experimental-fetch", "@context5m/mcp"]
}
}
}- Try adding
@latestto the package name - Use
bunxas an alternative tonpx - Consider using
denoas another alternative - Ensure you're using Node.js v18 or higher for native fetch support
