CRE MCP Server
MCP server for Chainlink Runtime Environment, enabling build, simulate, deploy, and manage CRE workflows from any MCP client.
README
CRE MCP Server
MCP server for the Chainlink Runtime Environment (CRE) — wraps the CRE CLI and SDK as 30 tools and 10 resources over the Model Context Protocol.
Build, simulate, deploy, and manage CRE workflows from any MCP client (Claude Code, Claude Desktop, Cursor, etc.).
Features
- 30 MCP tools — full CRE lifecycle: auth, project scaffolding, workflow management, secrets, code generation, account keys, and Solidity contract scaffolding
- 10 MCP resources — architecture docs, SDK reference, config schemas, contract templates, forwarder addresses
- Solidity support — scaffold
IReceivercontracts, typed consumer contracts, and CCIP receivers - Streamable HTTP transport — stateful sessions via Express on port 3200
Prerequisites
- Node.js 18+
- CRE CLI:
curl -sSfL https://raw.githubusercontent.com/smartcontractkit/cre-cli/main/install/install.sh | bash - Bun (required by CRE CLI for WASM compilation):
brew install oven-sh/bun/bun
Quick Start
git clone https://github.com/Midwest-AI-Solutions/cremcp.git
cd cremcp
npm install
npm run dev
The server starts at http://localhost:3200 with:
- MCP endpoint:
http://localhost:3200/mcp - Health check:
http://localhost:3200/health
MCP Client Configuration
Claude Code (~/.claude.json)
{
"mcpServers": {
"cre": {
"type": "http",
"url": "http://localhost:3200/mcp"
}
}
}
Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"cre": {
"type": "http",
"url": "http://localhost:3200/mcp"
}
}
}
Tools
| Category | Tools | Description |
|---|---|---|
| Auth | cre_login, cre_logout, cre_whoami |
Chainlink platform authentication |
| Project | cre_init, cre_build, cre_version, cre_update, cre_generate_bindings |
Project scaffolding and build |
| Workflow | cre_workflow_simulate, cre_workflow_deploy, cre_workflow_activate, cre_workflow_pause, cre_workflow_delete |
Full workflow lifecycle |
| Secrets | cre_secrets_create, cre_secrets_update, cre_secrets_delete, cre_secrets_list, cre_secrets_execute |
DON-encrypted secrets management |
| Codegen | cre_scaffold_trigger, cre_scaffold_capability, cre_scaffold_handler |
TypeScript workflow code generation |
| Docs | cre_get_docs, cre_list_capabilities, cre_list_triggers |
Documentation and reference |
| Account | cre_account_link_key, cre_account_list_key, cre_account_unlink_key |
Wallet key management |
| Solidity | cre_scaffold_receiver, cre_scaffold_consumer, cre_scaffold_ccip_receiver |
On-chain contract scaffolding |
Resources
| URI | Description |
|---|---|
cre://docs/overview |
CRE architecture overview |
cre://docs/sdk-reference |
TypeScript SDK quick reference |
cre://docs/forwarder-addresses |
KeystoneForwarder addresses by chain |
cre://docs/solidity-integration |
End-to-end on-chain integration guide |
cre://contracts/ireceiver |
IReceiver interface specification |
cre://contracts/consumer-template |
Annotated consumer contract template |
cre://config/workflow-yaml |
Workflow YAML schema |
cre://config/secrets-yaml |
Secrets YAML schema |
cre://config/project-yaml |
Project YAML schema |
cre://templates/workflow-ts |
Minimal workflow TypeScript template |
Supported Trigger Types
| Type | Use Case |
|---|---|
cron |
Time-based scheduling |
streams |
Data Streams price updates |
mercury |
Mercury feed updates |
log-trigger |
EVM log events |
on-demand |
API-initiated |
http |
Incoming webhook |
Supported Capability Types
| Type | Use Case |
|---|---|
custom-compute |
Arbitrary WASM logic |
write-evm |
Write to EVM chains |
data-feeds-read |
Read Chainlink price feeds |
streams-lookup |
Fetch Data Streams reports |
chain-reader |
Read on-chain state |
http-client |
HTTP requests with DON consensus |
consensus |
Aggregate results across DON nodes |
Architecture
src/
├── index.ts # Express server + Streamable HTTP transport
├── server.ts # McpServer instance + tool/resource registration
├── lib/
│ ├── cli-check.ts # CRE CLI availability detection
│ ├── cli-runner.ts # child_process.spawn wrapper
│ └── output-parser.ts # Tool response formatting
├── tools/
│ ├── index.ts # Tool module registration
│ ├── auth.ts # Login, logout, whoami
│ ├── project.ts # Init, build, version, update, generate-bindings
│ ├── workflow.ts # Simulate, deploy, activate, pause, delete
│ ├── secrets.ts # CRUD + execute for DON secrets
│ ├── codegen.ts # Trigger, capability, handler scaffolding
│ ├── docs.ts # Documentation retrieval
│ ├── account.ts # Wallet key management
│ └── solidity.ts # Solidity contract scaffolding
└── resources/
├── index.ts # Resource module registration
├── docs.ts # Overview + SDK reference
├── templates.ts # Config schemas + workflow template
└── solidity.ts # IReceiver, consumer, forwarder addresses, integration guide
Development
npm run dev # Start with hot reload (tsx --watch)
npm run build # Compile TypeScript
npm start # Run compiled JS
npm run typecheck # Type check without emitting
Environment Variables
| Variable | Default | Description |
|---|---|---|
PORT |
3200 |
Server port |
CRE_CLI_PATH |
~/.cre/bin/cre |
Path to CRE CLI binary |
License
MIT
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。