GitHub Repository
View the source code, installation instructions, and skill definitions.
What’s Included
The plugin bundles three skills and an MCP server configuration:graphor-workflow
Core skill — teaches the agent the upload, process, query workflow using MCP tools. Auto-activates when relevant.
graphor-ts-sdk
TypeScript SDK patterns — activates when writing TypeScript/JavaScript code with the
graphor npm package.graphor-py-sdk
Python SDK patterns — activates when writing Python code with the
graphor PyPI package..mcp.json
MCP Server config — auto-configures the
graphor-mcp server for direct API access.How It Works
The plugin follows the Agent Skills open standard. When installed, the skills provide your agent with:- Contextual knowledge — The agent learns Graphor’s core workflow (upload, process, query), API patterns, and best practices automatically.
- MCP server access — The bundled
.mcp.jsonconfiguration connects the agent to the Graphor MCP Server, giving it direct access to the API. - SDK coding assistance — When writing code that uses the Graphor SDK, the agent gets language-specific patterns, method signatures, error handling, and type safety guidance.
Skills activate automatically based on context — you don’t need to explicitly load them. The workflow skill activates when you mention Graphor documents, and the SDK skills activate when writing code that imports
graphor.Installation
Claude Code — Plugin Marketplace (Recommended)
The quickest way to install:Project-Level Installation (Team-Wide)
Copy the skills into your project’s.claude/skills/ directory so the entire team benefits:
Personal Installation (All Projects)
Copy the skills to your personal Claude directory:Other Agent Tools
Since the skills follow the Agent Skills open standard, they are portable across 27+ agent tools including:- Claude Code
- Cursor
- VS Code
- GitHub Copilot
- Gemini CLI
- And more
Skills Reference
graphor-workflow
The primary skill. It teaches the agent the complete Graphor workflow and activates automatically when you mention document operations. Activation: Auto-activates when the agent detects tasks related to uploading, processing, or querying documents in Graphor. Core workflow:- Upload a source — returns status
"New" - Process the source by calling parse — triggers async processing (
"New"→"Processing"→"Completed") - Query the source (ask, extract, or retrieve chunks) — only works after status is
"Completed"
| Rule | Description |
|---|---|
upload-sources | Upload files, URLs, GitHub repos, or YouTube videos |
async-processing | Process documents and poll for completion status |
ask-sources | Ask questions about documents with conversational Q&A |
extraction | Extract structured data using JSON Schema |
retrieve-chunks | Retrieve chunks for custom RAG pipelines |
manage-sources | List, inspect, or delete documents |
- Uses MCP tools for all non-upload operations (parse, ask, extract, list, delete)
- Uses
file_idsoverfile_names(deprecated) — storesfile_idfrom upload responses - Always processes after upload
- Always checks status is
"Completed"before querying
graphor-ts-sdk
Background knowledge skill for writing TypeScript/JavaScript code with the Graphor SDK. Activation: Activates when writing TypeScript/JavaScript code that imports or uses thegraphor npm package.
Covers:
- Client setup and initialization
- All SDK methods (
upload,uploadURL,uploadGitHub,uploadYoutube,parse,list,delete,loadElements,ask,extract,retrieveChunks) - File upload patterns (
fs.createReadStream,toFilehelper) - Error handling (
Graphor.BadRequestError,Graphor.NotFoundError, etc.) - Type safety and TypeScript interfaces
graphor-py-sdk
Background knowledge skill for writing Python code with the Graphor SDK. Activation: Activates when writing Python code that imports or uses thegraphor PyPI package.
Covers:
- Sync (
Graphor) and async (AsyncGraphor) clients - All SDK methods (
upload,upload_url,upload_github,upload_youtube,parse,list,delete,load_elements,ask,extract,retrieve_chunks) - File upload patterns (
Path, bytes, tuples) - Error handling (
graphor.BadRequestError,graphor.NotFoundError, etc.) - Configuration (retries, timeouts, aiohttp)
Authentication
All skills require a valid Graphor API key. Set it as an environment variable:.mcp.json uses ${GRAPHOR_API_KEY} expansion to read this value automatically.
If MCP operations return authentication errors, the key is not set correctly. Run
export GRAPHOR_API_KEY="grlm_..." and restart your agent tool.Learn how to create and manage API tokens in the API Tokens guide.
Example Usage
Once installed, just talk to your agent naturally:Upload and summarize a document
Upload and summarize a document
You say: “Upload https://example.com/report to Graphor and summarize it”Agent will:
- Upload the URL via MCP
- Call parse to start processing
- Poll until status is
"Completed" - Ask the document for a summary
Extract structured data
Extract structured data
You say: “Extract all invoice numbers and amounts from invoice.pdf in Graphor”Agent will:
- Look up the file in your project
- Use the extract method with a JSON Schema
- Return structured data
Write SDK code
Write SDK code
You say: “Write a Python script that uploads all PDFs in a folder to Graphor and extracts their titles”Agent will:
- Activate the
graphor-py-sdkskill - Write idiomatic Python using
Graphor(),upload(),parse(), andextract() - Include proper error handling and async processing
Build a RAG pipeline
Build a RAG pipeline
You say: “Retrieve the most relevant chunks about payment terms from my contract”Agent will:
- Use
retrieveChunksvia MCP - Return chunks with file names, page numbers, and relevance scores
Repository Structure
Troubleshooting
Authentication errors from MCP
Authentication errors from MCP
Causes:
GRAPHOR_API_KEY environment variable not set or incorrectSolutions:- Run
export GRAPHOR_API_KEY="grlm_your_api_key_here"in your terminal - Add it to
~/.bashrcor~/.zshrcfor persistence - Restart your agent tool after setting the variable
- Verify the key starts with
grlm_
MCP server not connecting
MCP server not connecting
Causes: Node.js not installed, npx not available, or plugin not installed correctlySolutions:
- Verify Node.js 20+ is installed:
node --version - Re-install the plugin:
/plugin install graphor@graphor-skills - Check that
.mcp.jsonexists in the plugin directory - Try running the MCP server manually:
npx -y graphor-mcp
Local file uploads failing
Local file uploads failing
Causes: The MCP server sandbox cannot access local filesSolutions:
- The workflow skill automatically uses
curlvia Bash for local file uploads - For URL, GitHub, and YouTube uploads, MCP tools work directly
- Ensure your
GRAPHOR_API_KEYis available in the shell environment
Agent not using Graphor skills
Agent not using Graphor skills
Causes: Skills not installed or not activatedSolutions:
- Verify installation:
/plugin listshould showgraphor - Be explicit in your prompt: mention “Graphor” or “documents”
- Check that skill files exist in
.claude/skills/or the plugin directory

