octen-mcp
MCP server for Octen Extract that turns any URL into clean, LLM-ready markdown, with highlights and classification. Works with Claude, Cursor, VS Code, and other MCP clients.
README
octen-mcp
MCP server for Octen Extract — turn any URL into clean, LLM-ready markdown. Plug into Claude / Cursor / VS Code / Windsurf and let the model pull the live web.
Why this MCP
Most extract tools (Firecrawl, Exa web_fetch, Tavily extract) hand you the page body. Octen gives you more, per page, in one call:
highlights— pass aqueryand get the most relevant snippets ranked, not the whole page (cheaper context, better signal)category— topical classification{primary, secondary}page_structure— page typology{primary, secondary}(article / product / listing / index / …)
Quick start
You need an Octen API key — grab one at octen.ai.
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"octen": {
"command": "npx",
"args": ["-y", "octen-mcp"],
"env": {
"OCTEN_API_KEY": "your-key-here"
}
}
}
}
Quit and reopen Claude Desktop. Ask "fetch octen.ai and summarize" — Claude routes to the extract tool automatically.
Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"octen": {
"command": "npx",
"args": ["-y", "octen-mcp"],
"env": { "OCTEN_API_KEY": "your-key-here" }
}
}
}
VS Code
The button prompts you for the API key on click — no manual editing needed. Or add to .vscode/mcp.json in your workspace:
{
"servers": {
"octen": {
"command": "npx",
"args": ["-y", "octen-mcp"],
"env": { "OCTEN_API_KEY": "your-key-here" }
}
}
}
Claude Code (CLI)
One line, no JSON editing:
claude mcp add --scope user octen \
-e OCTEN_API_KEY=your-key-here \
-- npx -y octen-mcp
--scope user makes it available from any directory. Verify with claude mcp list — should show octen: ✓ Connected.
Windsurf / Cline / other MCP clients
Same npx -y octen-mcp command with OCTEN_API_KEY env — works in any MCP-compatible client.
Tool reference: extract
| Param | Type | Default | Description |
|---|---|---|---|
urls |
string[] |
required | 1–20 URLs per call. Bare hosts like octen.ai are auto-prefixed with https://. |
query |
string |
none | Intent-focused keywords. When set, results contain highlights instead of full_content. Max 500 chars. |
max_age_seconds |
int |
86400 |
Cache TTL in seconds (min 300). Lower this for time-sensitive pages (news, prices). |
format |
markdown | text |
markdown |
Output content format. |
timeout |
int |
30 |
Per-URL extraction timeout, 1–60 seconds. |
include_images |
bool |
false |
Include image URLs found on each page. |
include_videos |
bool |
false |
Include video URLs found on each page. |
include_audio |
bool |
false |
Include audio URLs found on each page. |
include_favicon |
bool |
false |
Include each page's favicon URL. |
Full API reference: docs.octen.ai/api-reference/extract.
Example prompts to try
Fetch octen.ai and summarize the main product features.Compare the positioning of firecrawl.dev and octen.ai.What does the Hacker News front page say right now? Pull the top 5 story titles.Search 'pricing' across firecrawl.dev — return only the relevant highlights.(triggersquery→highlights)
How Octen handles edge cases
Real web pages fail in messy ways. Octen surfaces structured signals so your LLM agent can decide what to do, instead of guessing from an empty markdown blob.
| Scenario | Example URL | Octen response | Why it's useful |
|---|---|---|---|
| Hard 404 | https://httpbin.org/status/404 |
status: failed, error_message: "Target returned HTTP 404" |
Agent knows the URL is dead — no need to retry. |
| Server error (5xx) | https://httpbin.org/status/500 |
status: failed, error_message: "Target server error (HTTP 500)" |
Distinguishes server-side outage from client-side dead page — can be safely retried later. |
| DNS failure / dead domain | https://nonexistent-zzz-fake-xyz.invalid |
status: failed, error_message: "Failed to resolve domain" |
Distinguishes "domain doesn't exist" from "page doesn't exist" — different remediation. |
| Login wall / no main content | https://github.com/login |
status: success, title: "Build software better, together", page_structure: "No Main Content", full_content: 602 bytes |
✨ Even when the request succeeds and there's a title, page_structure flags pages with no real body. Agents can branch on this instead of feeding the LLM a useless login splash. |
The last row is the Octen-specific win: most extract tools would return status: success + a short body for that login wall and your agent has no signal it's garbage. Octen's page_structure classifier tells you upfront.
Environment variables
| Variable | Required | Default | Notes |
|---|---|---|---|
OCTEN_API_KEY |
✅ | — | Get one at octen.ai |
OCTEN_API_URL |
optional | https://api.octen.ai |
Override for staging or self-hosted |
Local development
git clone https://github.com/Octen-Team/octen-mcp.git
cd octen-mcp
npm install
npm run build
OCTEN_API_KEY=<key> npm run inspect # opens MCP Inspector
Tip — make Claude prefer this tool
If your client also has a built-in web-fetch tool, drop a hint in Claude Desktop's Customize / Project Instructions:
When the user asks to fetch or extract content from a URL, prefer the
extracttool from theoctenMCP server. Usequerywhenever the user is looking for something specific on the page (returns ranked highlights, not the whole body).
With the hint in place, a single tool call classifies three mixed URLs (article / homepage / discussion) in one shot:

License
MIT © Octen
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。