Skip to content

talocode/doculane

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DocuLane

Office document CLI for agents — read, write, and edit Word, Excel, PowerPoint without Office installed.

npm License: MIT

Open-source MCP server, CLI, and SDK that give coding agents direct access to Office documents — Word (.docx), Excel (.xlsx), and PowerPoint (.pptx). No Microsoft Office installation required.

Why it exists

Agents need to process business documents — reports, spreadsheets, presentations. DocuLane makes this possible without Office licenses or installations:

  • MCP-native — plug into OpenCode and other agent hosts
  • Local-first — run the open tool with your own files
  • Hosted path — sell/meter usage under /v1/doculane/*
  • No dependencies — works without Microsoft Office

Part of Talocode: open tools people trust, hosted power behind them.

Install

npm install -g @talocode/doculane

Or without install:

npx @talocode/doculane@latest health

Python:

pip install talocode-doculane

Quickstart

CLI

# Read a Word document
doculane read report.docx

# Read an Excel spreadsheet
doculane read data.xlsx

# Read a PowerPoint presentation
doculane read slides.pptx

# Get document info
doculane info report.docx

# Write a new Excel file
doculane write output.xlsx '{"sheets":[{"name":"Sheet1","data":[["Name","Age"],["Alice",30],["Bob",25]]}]}'

MCP (OpenCode)

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "doculane": {
      "type": "local",
      "command": ["npx", "-y", "@talocode/doculane", "mcp"]
    }
  }
}

SDK

import { DocuLaneClient } from '@talocode/doculane'

const client = new DocuLaneClient()

// Read an Excel file
const excelData = await client.read('report.xlsx')
console.log(excelData.sheets[0].data)

// Write a Word document
await client.write('output.docx', {
  content: 'Hello World',
  paragraphs: ['First paragraph', 'Second paragraph']
})

// Get document info
const info = await client.getInfo('presentation.pptx')

Supported formats

Format Extension Read Write Notes
Word .docx, .doc Text extraction and creation
Excel .xlsx, .xls Multi-sheet support
PowerPoint .pptx, .ppt Slide management

API surface

Local engine

Function Description
readExcel(path) Read Excel workbook
writeExcel(path, data) Write Excel workbook
readWord(path) Read Word document
writeWord(path, data) Write Word document
readPowerPoint(path) Read PowerPoint
writePowerPoint(path, data) Write PowerPoint
getInfo(path) Get document metadata

Hosted routes (Talocode Cloud)

Method Path Credits
GET /v1/doculane/health 0
GET /v1/doculane/pricing 0
GET /v1/doculane/capabilities 0
POST /v1/doculane/read 5
POST /v1/doculane/write 5
POST /v1/doculane/info 2

Auth:

Authorization: Bearer $TALOCODE_API_KEY

MCP tools

Tool Description
doculane_read Read Office document
doculane_write Write Office document
doculane_info Get document metadata
doculane_health Health check
doculane_capabilities Supported features

CLI

doculane read <file>
doculane write <file> <json-data>
doculane info <file>
doculane health
doculane capabilities
doculane pricing

Architecture

Agent (OpenCode / CLI / SDK)
        │
        ▼
   DocuLane
   ┌──────────────────────────┐
   │ MCP · CLI · SDK · HTTP   │
   └────────────┬─────────────┘
                │
     ┌──────────┼──────────┐
     ▼          ▼          ▼
   local      talocode     mock
  (engine)   (hosted)    (offline)

Develop

git clone https://github.com/talocode/doculane
cd doculane
npm install
npm run build
npm test
npm run mcp

Related packages

Package Install
DocuLane (this package) npm i @talocode/doculane · pip install talocode-doculane
ContextLane pip install contextlane
DevTool pip install talocode-devtool

Talocode ecosystem

Product Repo Notes
DocuLane talocode/doculane (this package) Office document CLI
XSearchLane talocode/xsearchlane Realtime X search MCP/API
XProLane talocode/xprolane X Pro setup & signal dashboard
SearchLane talocode/searchlane Agent web search & research
Tera talocode/tera Hosted writing/coding capability API
Codra talocode/codra Coding agent runtime
StackLane talocode/stacklane Cloud control plane, keys, wallet
GateLane talocode/gatelane Policy / gate tooling
ContextLane talocode/contextlane Context infrastructure
ScreenLane talocode/screenlane Screen/agent UI tooling
MemoryLane talocode/memorylane Memory for agents
Tradia talocode/tradia Trading tooling
DevTool talocode/devtool Developer utilities
Agent Browser talocode/agent-browser Browser automation API
InvoiceLane talocode/invoicelane Invoicing
GeoLane talocode/geolane Geo visibility
ClipLoop talocode/cliploop Short-form video loop

More: github.com/talocode · talocode.site · docs.talocode.site

Links

License

MIT © Talocode

About

Office document CLI for agents — read, write, and edit Word, Excel, PowerPoint without Office installed

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages