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 ingest → poll build status → 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 (ingest, poll build status, 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 ingesting, polling build status, or querying documents in Graphor. Core workflow:- Ingest a source (file, URL, GitHub, YouTube) via MCP — returns build_id immediately.
- Poll get_build_status(build_id) until success is true — status may be
Pending(request received), thenProcessing, thenCompleted. Use the returned file_id for all subsequent operations. - Query the source (ask, extract, retrieve_chunks, get_elements) or manage (list_sources, delete_source) using file_id.
| Rule | Description |
|---|---|
upload-sources | Ingest files, URLs, GitHub repos, or YouTube videos (returns build_id; poll for file_id) |
parsing | Poll build status and reprocess documents |
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 sources, get elements, or delete documents |
- Uses MCP tools for all operations (ingest_file, ingest_url, ingest_github, ingest_youtube, get_build_status, list_sources, reprocess, get_elements, delete_source, ask, extract, retrieve_chunks)
- Uses file_id from get_build_status (when success is true) or list_sources — not from the ingest response (ingest returns build_id only)
- Polls get_build_status after ingest or reprocess until success is true
- If auth errors occur, the
GRAPHOR_API_KEYenvironment variable is not set correctly
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 (
ingestFile,ingestURL,ingestGitHub,ingestYoutube,getBuildStatus,reprocess,list,delete,getElements,ask,extract,retrieveChunks) - Async ingest workflow (build_id → poll getBuildStatus → file_id)
- 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 (
ingest_file,ingest_url,ingest_github,ingest_youtube,get_build_status,reprocess,list,delete,get_elements,ask,extract,retrieve_chunks) - Async ingest workflow (build_id → poll get_build_status → file_id)
- File upload patterns (path, bytes, file-like objects)
- 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:Ingest and summarize a document
Ingest and summarize a document
You say: “Ingest https://example.com/report into Graphor and summarize it”Agent will:
- Ingest the URL via MCP (ingest_url) → receives build_id
- Poll get_build_status until success → obtains file_id
- Ask the document for a summary using file_id
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 (or ingest it and poll for file_id)
- Use the extract MCP tool with a JSON Schema and file_ids
- Return structured data
Write SDK code
Write SDK code
You say: “Write a Python script that ingests all PDFs in a folder to Graphor and extracts their titles”Agent will:
- Activate the
graphor-py-sdkskill - Write idiomatic Python using
ingest_file(),get_build_status()(poll), thenextract()with file_id - Include proper error handling and async polling until success
Build a RAG pipeline
Build a RAG pipeline
You say: “Retrieve the most relevant chunks about payment terms from my contract”Agent will:
- Use the retrieve_chunks MCP tool (or SDK) with file_ids
- Return chunks with file_id, 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
Next Steps
MCP Server
Learn more about the Graphor MCP Server that powers the skills
SDK Overview
Explore the full SDK documentation for Python and TypeScript
Ingest Sources
Detailed guide on ingesting documents, URLs, GitHub repos, and videos
Data Extraction
Extract structured data from documents with JSON Schema

