Show HN:Codify MCP – 將瀏覽器操作編碼為自訂 AI 工具

Show HN:Codify MCP – 將瀏覽器操作編碼為自訂 AI 工具

Hacker News·

Codify MCP 是一個新專案,讓使用者能將瀏覽器操作編碼成可重複使用的 AI 工具,並利用 Apify Agent 進行自訂自動化。其目標是建立一個端對端的瀏覽器自動化流程,可由 AI 控制和擴展。

Security Update: Classic tokens have been revoked. Granular tokens are now limited to 90 days and require 2FA by default. Update your CI/CD workflows to avoid disruption. Learn more.

codify-mcp

Codify MCP

MCP server for custom automation tools using Apify Agent

Part of Project Codify

Project Codify

Complete end-to-end browser automation pipeline running inside browser (or locally). Codify and replay browser actions as robust (deterministic) and reusable scripts.
From rapid prototyping and quick automation scripts to sophisticated deployments at scale.

Login - reusable authentication sessions - reusable secure login (TBD) ☑️

Agent - turn scripts into browser actions - code or text script (future) ✅

Coder - turn browser actions into scripts (TBD - currently integrated) ✅

Robot - automation engine for scalability (TBD - currently integrated) ✅

MCP - automations become reusable tools you can reuse through AI ✅

More is on the way... Give it a shot 🎬 or join the list to follow the project! 🔔

What It Does

Model Context Protocol (MCP) server that lets AI assistants (e.g. Claude, Cursor, VS Code) execute browser automation tasks via Apify Agent. Tools are passed as clean JSON arguments — one per line. No manual setup or file creation.

Usage

Run directly using npx:

Or install locally:

Quick Start

1. Apify Token

Optional - you can also place the token inside the MCP server JSON later.

This saves your token to ~/.apify/auth.json.

Alternatively, set the environment variable:

2. Create a Tool

Apify Coder can turn casual browser actions into reusable AI tools.
Currently, this feature is also integrated in Apify Agent

Export a tool and append the result as a JSON string to the MCP server args field or ask your AI to do it for you.

3. Run the Server

Or with multiple tools:

4. Connect to Claude Desktop (or Cursor/VS Code)

Edit your Claude Desktop config:

macOS/Linux: ~/.config/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Restart Claude. Your tools are now available to the AI assistant.

Tool Definition Reference

Basic Structure

Implementation Details

Input Schema Examples

Simple text input:

Optional field:

Enum (dropdown):

Usage Patterns

Single Tool (Development)

Multiple Tools (Production)

With Environment Variable

With npm link (Local Testing)

Authentication

Token resolution order:

Troubleshooting

"No valid tools in arguments"

Ensure you're passing valid JSON strings as arguments:

"Invalid or missing Apify token"

Ensure authentication is set up:

"Tool execution failed"

Check your Playwright script syntax. The script must be valid JavaScript that:

Large Tool Sets (50+ tools)

If you have many tools, consider splitting into multiple MCP servers:

Development

Running Locally

Structure

Key Design Principles

License

Apache-2.0

Contributing

Issues and PRs welcome at github.com/cybairfly/apify-agent

Readme

Keywords

Package Sidebar

Install

npm i codify-mcp

Repository

Gitgithub.com/cybairfly/apify-agent

Homepage

codify.codey.eu.org

Version

0.4.0

License

Apache-2.0

Unpacked Size

445 kB

Total Files

11

Last publish

2 hours ago

Collaborators

Image

Footer

Support

Company

Terms & Policies

Hacker News

相關文章

  1. Show HN:ArchitectGBT MCP - AI 輔助開發的智慧模型選取

    3 個月前

  2. Show HN:Apex Agent – 透過 MCP 將瀏覽器連接至 AI

    3 個月前

  3. Show HN:MCP 伺服器讓 AI 代理能夠獲取真實的 UntitledUI 組件

    3 個月前

  4. Show HN:Flipper Zero MCP – 透過 USB 或 WiFi 使用 AI 控制您的 Flipper

    4 個月前

  5. 讓您的 AI 編碼代理透過 Chrome DevTools MCP 調試瀏覽器工作階段

    大約 1 個月前