About Cortex
Cortex is an MCP server published by aj-archipelago in the Science category: open-source AI backend control plane for model routing, agent tools, OpenAI-compatible APIs, and private workspaces. Conduid read 46 tools from its source: AnalyzePDF, AnalyzeVideo, CallModel, Code, CodeExecution, ConnectMcpServer and 40 more. No package is published for it, so it installs from a source checkout.
The repository has 66 stars and 9 forks, is licensed MIT, and its last commit was on 24 Sep 2026. The latest release is 1.4.34 (11 Feb 2026). It follows 1.4.33 (28 Jan 2026), and the 5 most recent releases go back to 1.4.30 (31 Dec 2025). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include ai-workspace, anthropic-compatible, entities, graphql, llama and llm-router.
Install
git clone https://github.com/aj-archipelago/cortexTools (46)
AnalyzePDFUse specifically for reading, analyzing, and answering questions about PDF file content. Do not use this tool for analyzing and answering questions about other file types.AnalyzeVideoUse specifically for reading, analyzing, and answering questions about video or audio file content. You MUST use this tool to look at video or audio files. This tool supports YouTube URLs (youtube.com, youtu.be), direct video/audio file URLs, and files from the file collection.CallModelUse when you need to call an AI model to get a response. This is typically used to perform some sort of custom LLM analysis (translate, summarize, ask questions about content, etc.), but can literally do anything you need. You can use this to call any model you have access to and perform any task.CodeEngage for any programming-related tasks, including creating, modifying, reviewing, or explaining code.CodeExecutionUse when explicitly asked to run or execute code, or when a coding agent is needed to perform specific tasks.ConnectMcpServerConnect a new external service that the user has not set up yet. Call this tool when the user wants to use a service that is not currently connected. This will open an authentication window for the user to authorize access. After connecting, the service's tools will be available in subsequent messages. Available services to connect: ${serviceList}CreateChartCreates a single chart or diagram that will render in the UI to visualize data or concepts. You can create all the standard Mermaid chart types (flowcharts, sequence diagrams, gantt charts, etc.) as well as bar charts and line and scatter plots. This tool also validates the syntax and ensures proper formatting. Call this tool any time you need to create a chart. If you need to create multiple charts, you can call this tool multiple times in parallel to create multiple charts.CreateMediaQuick image/video generation with preset models. For exact model choice, parameters, music, speech, or background jobs, discover the Media tool.
- To CREATE an image from scratch: set type="image" and provide a prompt
- To MODIFY/TRANSFORM an image: set type="image" and attach referenceImages from your file collection
- To CREATE a video: set type="video" and provide a prompt
- To EXTEND a video: set type="video" and attach one referenceVideos item from your file collection
Videos are slow and expensive. Use sparingly.CreatePlanCreate a detailed, step-by-step plan to optimally accomplish a complex task. Use this tool when approaching research problems, multi-step operations, or any task that requires careful planning and sequencing of multiple tool calls or operations.DocumentAccess user's personal document index. Use for user-specific uploaded information. If user refers vaguely to "this document/file/article" without context, search the personal index. You pass in detailed instructions about what you need the tool to do in detailedInstructions.FetchWebPageContentThis tool allows you to fetch and extract the text content and a screenshot if requested from any webpage. Use this when you need to analyze or understand the content of a specific webpage.FetchWebPageContentJinaThis tool allows you to fetch and extract the text content from any webpage using the Jina API. This is a great backup tool for web page content if you don't get a good enough response from your other browser tool or are blocked by a website.FileCollectionCanonical tool for user cloud files and `/workspace/files` discovery. Use this before WorkspaceSSH whenever you need to find a user file by name; do not recursively scan `/workspace/files` or `/cloud-files` with shell commands.
Recommended flow:
- SEARCH: `operation: "search"` plus `query` to find filenames quickly. Results may include `workspacePath`; pass that path to WorkspaceSSH only when it is present.
- READ: `operation: "read"` plus a returned `fileRef` to read a selected text file. For a large text or HTML file, also pass `query` to retrieve relevant passages in one call.
- RESOLVE: `operation: "resolve"` plus `fileRef` for one selected file when you need full metadata or a URL.
- LIST: `operation: "list"` for recent/top-level browsing, not broad searching.
- REMOVE: `operation: "remove"` plus `fileIds` to delete files.
If `operation` is omitted, it is inferred from `fileRef`, `query`, or `fileIds` for backward compatibility.GenerateImageUse when asked to create, generate, or generate revisions of visual content. Any time the user asks you for a picture, a selfie, artwork, a drawing or if you want to illustrate something for the user, you can use this tool to generate any sort of image from cartoon to photo realistic. This tool does not display the image to the user - you need to do that with markdown in your response.GenerateSlidesUse when asked to create, generate, or design slides, infographics, presentations, or visual content optimized for presentations. This tool is specifically designed for creating presentation-ready visuals including slide layouts, infographic designs, charts, diagrams, and other visual content that would be used in presentations. It uses Gemini 3 Pro image generation which excels at creating structured, professional presentation content. After you have generated the content, you must include it in your response to show it to the user.GenerateVideoUse when asked to create, generate, or produce video content. This tool generates short 8-second video clips from text descriptions and optional reference images using Google's Veo 3.1 Fast model. The videos are high quality with AI-generated audio. Perfect for creating promotional clips, visual demonstrations, animated scenes, or bringing still images to life. After you have generated the video, you must include a link to it in your response to show it to the user.ImageUse this tool when asked to create, generate, or revise visual content including selfies, photographs, illustrations, diagrams, or any other type of image. You pass in detailed instructions about the image(s) you want to create in detailedInstructions. This tool only creates images - it cannot manipulate images (e.g. it cannot crop, rotate, or resize an existing image) - for those tasks you will need to use the CodeExecution tool.InspectToolResultRead a bounded view of a prior large tool result by resultRef without expanding it into the conversation history. Use summary first, then head, tail, chunk, or search when you need specific details from a compacted or oversized result.MediaDiscover and run media models: images, video, music, speech, editing, dubbing, upscaling. Search, then describe a model for settings. Generate queues a job and displays a live result card in this chat. Give one short setup; do not repeat the brief or narrate each lookup. Cards update automatically: do not poll just to display results or send the user elsewhere. Use status when outputs are needed for another workflow step. Reuse receipts; never generate to check status.MemoryLookupUse this tool to proactively search your memories for information that might be relevant to the conversation. It's critical to maintain natural conversation flow with the user, so stall them for a few seconds with natural banter while you use this tool. Don't talk directly about the tool - just say "let me think about that" or something else that fits the conversation.ModifyImageUse when asked to modify, transform, or edit an existing image. This tool can apply various transformations like style changes, artistic effects, or specific modifications to an image that has been previously uploaded or generated. It takes up to three input images as a reference and outputs a new image based on the instructions. This tool does not display the image to the user - you need to do that with markdown in your response.MuteAudioUse this tool to enable or disable audio output (your voice) to the user. If you want to be quiet or the user has asked you to be quiet, use this tool with the argument mute="true". If you are muted and absolutely need to talk, use this tool with the argument mute="false".NotifyUserSend a message to the user you are currently working for in their Concierge inbox. Available to personal assistants, created colleagues, and shared specialists. The recipient is fixed to the current user, never the shared entity owner or other users. Use kind help when you need a decision, permission, missing credentials, or clarification; explain what is needed and stop dependent work. Use result for useful results or updates. The user can reply in a private chat targeted to you.PDFUse specifically for analyzing and answering questions about PDF file content.ReadTextFileRead text content from a text type file. Can read the file using line ranges (for line-based files) or character ranges (for files like JSON where line-based reading doesn't work well). Use this to access text files from your file collection. Supports text files, markdown files, html, csv, json, and other document formats that can be converted to text. DOES NOT support binary files, images, videos, or audio files or pdfs. Reading large files in chunks is recommended to avoid token limits. Use character ranges (startChar/endChar) for JSON and other structured formats. Use line ranges (startLine/endLine) for code and text files. If no range is specified, reads from the beginning with default limits.ReasonUse this tool any time you need to think carefully about something or solve a problem. Use it to solve all math problems, logic problems, scientific analysis, evaluating evidence, strategic planning, problem-solving, logic puzzles, mathematical calculations, or any questions that require careful thought or complex choices. Also use when deep, step-by-step reasoning is required. You pass in detailed instructions about what you need the tool to do in detailedInstructions.ReauthenticateMcpServerRe-authenticate an expired MCP service connection. The following services have expired authentication tokens and their tools are unavailable until re-authenticated: ${expiredList}. Call this tool to open a re-authentication window for the user. After the user completes re-authentication, the connection will be restored for subsequent messages.ScreenshotUse this tool to capture a screenshot of what the user is currently seeing in their browser window or on their computer screen. Any time the user asks you to take a look at something on their computer screen, use this tool. The tool will request a screenshot from the client and send the image data and the conversation history to your visual processing core for a detailed analysis and response.SearchUse for current events, news, fact-checking, and information requiring citation. This tool allows you to search the internet, configured news archives and current news sources. You pass in detailed instructions about what you need the tool to do in detailedInstructions.SearchAvailableToolsSearchIndexSearch configured news indexes: ${VALID_INDEXES_MESSAGE}. Use wires for news wires. ALWAYS use a date filter (last 3-7 days) for latest/recent queries. If results appear stale (years old on a daily source), re-query with a broader range before reporting.SearchInternetThis tool allows you to search sources on the internet by calling another agent that has Bing search access. Use this for current events, news, fact-checking, and information requiring citation. Always call this tool in parallel rather than serially if you have several searches to do as it will be faster.SearchInternetBingSearch the internet with the Bing hosted agent for current web results. This is a backup internet search tool for Google CSE and returns normalized citation-friendly results.SearchInternetBraveSearch the internet with Brave Search for current web and news results. This is a backup internet search tool for Google CSE and returns normalized citation-friendly results.SearchMemoryUse specifically to search your long term memory for information or details that may not be present in your short term memory.SearchXPlatformThis tool allows you to search the X platform (formerly Twitter) for current posts, discussions, and real-time information. Use this for finding recent social media content, trending topics, public opinions, and real-time updates. This tool can be slow - 10-60s per search, so only use it when you really want X platform information. Always call this tool in parallel rather than serially if you have several searches to do as it will be faster.StoreMemoryUse this tool to store information to your memory. Use this when the user asks you to remember something, or when you want to save important information from the conversation for future reference.StoreSecretSecurely store an API key, token, or credential. The secret is encrypted and made available in the workspace as an environment variable and in /workspace/.env. Use this when a user gives you an API key or token so future workspace commands can reference it by name without handling plaintext again. Set value to null to delete a secret. Secret names must be UPPER_SNAKE_CASE, for example GITHUB_TOKEN or OPENAI_API_KEY.ValidateUrlThis tool validates URLs by performing a HEAD request to check if they are accessible and return valid responses. Use this to verify that links and image URLs are valid before including them in responses.VerifyResponseCritically evaluate a response and provide verification questions and follow-up actions. You should call this tool and execute the steps provided in the resulting verification plan before presenting a final response to the user to ensure it is accurate, complete, and consistent with the user's request.VideoUse specifically for analyzing and answering questions about video or audio file content.ViewImagesView one or more image files from your file collection. This injects the images into the conversation so you can see them. Use this when you need to look at image files that are in your collection but not currently visible in the conversation.VisionUse specifically for analyzing and answering questions about image files (jpg, gif, bmp, png, etc).WorkspaceSSHExecute commands in your persistent Linux workspace (Debian, cwd: /workspace). Use it for calculation, verification, data analysis, file processing, coding, and short-lived research notes. Don't guess when you can compute. Batch related checks into one shell command or small script when practical, and return concise summaries instead of dumping large files. Write full intermediate outputs to /workspace when useful. Pre-installed: Python 3 + pip, Node.js, bash, and common CLI tools (curl, jq, git, etc.). Install Python packages with: pip install <pkg> --break-system-packages Persistence: files, packages, virtual environments, and project structures survive between sessions. Read /workspace/README.md if present. For multi-step research, use /workspace/research-notes.md as a concise scratchpad for facts synthesized from tool results so you do not repeat the same lookups. User files: /cloud-files is the user's cloud storage mount. /workspace/files is a compatibility symlink to /cloud-files. Do not recursively scan /cloud-files or direct /workspace/files paths with find, rg, grep -R, ls -R, or tree. Plain recursive scans of /workspace are allowed when symlinks are not followed. For filename discovery under /workspace/files, use the FileCollection tool first with operation "search"; it returns workspacePath values that you can pass back to WorkspaceSSH for reading or processing selected files. Use FileCollection operation "resolve" only after selecting a specific result and needing URL/full metadata. BUILT-IN COMMANDS — IMPORTANT: The commands below are special commands handled by this tool, NOT bash commands. They MUST be the ENTIRE command string passed to this tool. NEVER combine them with bash syntax — no "cd /workspace && bg ...", no "bg ... && echo done", no embedding them in scripts or subshells. Just pass the built-in command as the complete command string. • bg <cmd> — run a command in the background (no timeout — suitable for servers, training, etc.). Returns a processId. The background process runs until it exits on its own or the workspace is destroyed. CORRECT: command: "bg python train.py" CORRECT: command: "bg node server.js" WRONG: command: "cd /workspace && bg python train.py" (bg is not bash) WRONG: command: "bg python train.py && echo started" (cannot chain with bg) • poll <processId> — check the status and output of a background process. Returns status (running/completed/failed), stdout, stderr, and exit code. Example: command: "poll a1b2c3d4e5f6g7h8" • jobs — list all background processes with their processId, status, command, and duration. Use this to find processIds you may have lost, or to check what's still running. Example: command: "jobs" • checkpoint — save a backup now; a significant reduction requires your explicit decision as the workspace-owning agent • checkpoint status — inspect the pending backup review • checkpoint approve <id> / checkpoint reject <id> — decide the exact candidate after checking whether the reduction was intended. Ask the user if uncertain. Your earlier cleanup command is not approval. Existing recovery backups are preserved. • reset [--preserve .env] — save a recovery checkpoint, then wipe workspace contents; review the resulting reduction before it becomes the new backup baseline • reset --destroy — destroy and re-provision the workspace container while preserving files. This can take up to 15 minutes because it checkpoints first. Everything else runs as a bash command. Relative and absolute paths both work.WriteEngage for any task related to composing, editing, or refining written content. This includes articles, essays, scripts, or any form of textual creation or modification. If you need to search for information or look at a document first, use the Search or Document tools. This tool is just to create or modify content. You pass in detailed instructions about what you need the tool to do in detailedInstructions.WriteFileWrite content to a file and upload it to cloud storage. The file will be added to your file collection for future reference. Use this to save text, code, data, or any content you generate to a file.Security checks
- ✓README presentThe repository's README runs to about 5.9K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- !No dynamic code executionScanned 488 source files and found 7 calls to eval or shell execution, in helper-apps/cortex-file-handler/src/redis.js, helper-apps/cortex-workspace/lib/shell.js and helper-apps/cortex-workspace/lib/system.js among others. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
Releases
README
The repository's README runs to about 5.9K words, fetched a month ago. The original in the repository is authoritative.
Read full README