Skip to main content
Glama

Cursor Conversations MCP Server

extract_conversation_elements

Extract files, code blocks, folders, languages, metadata, or structure from conversations to analyze patterns, build knowledge bases, or prepare data for further analysis and documentation.

Instructions

Extract specific elements from conversations such as file references, code blocks, programming languages, folder paths, metadata, or conversation structure. Use this to build knowledge bases, analyze code patterns, extract reusable snippets, understand project file usage, or prepare data for further analysis and documentation.

Input Schema

NameRequiredDescriptionDefault
conversationIdsNoSpecific conversation IDs to extract elements from (if not provided, extracts from all conversations)
elementsNoTypes of elements to extract from conversations
filtersNoFilters to apply when extracting elements
groupByNoHow to group the extracted elements in the outputconversation
includeContextNoInclude surrounding context for extracted elements
outputModeNoOutput format: "json" for formatted JSON (default), "compact-json" for minified JSONjson

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "conversationIds": { "description": "Specific conversation IDs to extract elements from (if not provided, extracts from all conversations)", "items": { "type": "string" }, "type": "array" }, "elements": { "default": [ "files", "codeblocks" ], "description": "Types of elements to extract from conversations", "items": { "enum": [ "files", "folders", "languages", "codeblocks", "metadata", "structure" ], "type": "string" }, "type": "array" }, "filters": { "additionalProperties": false, "description": "Filters to apply when extracting elements", "properties": { "fileExtensions": { "description": "Only include files with these extensions", "items": { "type": "string" }, "type": "array" }, "languages": { "description": "Only include code blocks in these programming languages", "items": { "type": "string" }, "type": "array" }, "minCodeLength": { "description": "Minimum length for code blocks to include", "type": "number" } }, "type": "object" }, "groupBy": { "default": "conversation", "description": "How to group the extracted elements in the output", "enum": [ "conversation", "element", "none" ], "type": "string" }, "includeContext": { "default": false, "description": "Include surrounding context for extracted elements", "type": "boolean" }, "outputMode": { "default": "json", "description": "Output format: \"json\" for formatted JSON (default), \"compact-json\" for minified JSON", "enum": [ "json", "compact-json" ], "type": "string" } }, "type": "object" }
Install Server

Other Tools from Cursor Conversations MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vltansky/cursor-conversations-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server