openmcp-sdk : Deployment framework for openmcp
Deploy your agent from lab to production at lightning speed ⚡
Introduction & Installation
What is openmcp-sdk.js
OpenMCP Client provides an all-in-one MCP debugging solution — which is great, but not quite enough.
Often, we want to take our developed MCPs and make them distributable apps, or deploy them as function services or microservices on a server. However, since OpenMCP Client places all logic for interacting with large models and using tools on the frontend, it becomes difficult to turn an MCP into an independent, model-bound application or service.
That’s where openmcp-sdk.js comes in.
It provides a lightweight Node.js-based solution that allows you to seamlessly deploy your MCP and its debugged workflow as an agent through Node.js.
Installation
npm install openmcp-sdkyarn add openmcp-sdkpnpm add openmcp-sdkUsage
First, create a new TypeScript project:
mkdir clever-agent && cd clever-agent
npm init -y
npm install typescript tsx @types/node --save-dev
tsc --initSince openmcp-sdk only supports ESM, make sure to add
"type": "module"in yourpackage.json.
Then install openmcp-sdk:
npm install openmcp-sdkNow, create a file named main.ts. With just a few lines of code, you can deploy your configuration as an agent:
import { OmAgent } from 'openmcp-sdk/service/sdk';
const agent = new OmAgent();
// Load the configuration — it can be automatically generated by OpenMCP Client after debugging
agent.loadMcpConfig('./mcpconfig.json');
// Load the pre-debugged prompt
const prompt = await agent.getPrompt('hacknews', { topn: '5' });
// Execute the task
const res = await agent.ainvoke({ messages: prompt });
console.log('⚙️ Agent Response', res);The mcpconfig.json can be directly exported from openmcp-client — no need to write it manually. Here’s an example:
{
"version": "1.0.0",
"namespace": "openmcp",
"mcpServers": {
"my-browser": {
"command": "mcp",
"args": [
"run",
"~/projects/openmcp-tutorial/crawl4ai-mcp/main.py"
],
"description": "A MCP for long-term memory support",
"prompts": [
"hacknews"
]
}
},
"defaultLLM": {
"baseURL": "https://api.deepseek.com",
"apiToken": "sk-xxxxxxxxxxxxxx",
"model": "deepseek-chat"
}
}Run it with:
npx tsx main.tsAnd you’ll see output like this:
2025/6/20 - 20:47:31 | 🚀 [crawl4ai-mcp] 1.9.1 connected, type STDIO
2025/6/20 - 20:47:35 | 🤖 Agent wants to use these tools get_web_markdown
2025/6/20 - 20:47:39 | ✅ get_web_markdown success
2025/6/20 - 20:47:46 | 🤖 Agent wants to use tools(3) get_web_markdown, get_web_markdown, get_web_markdown
2025/6/20 - 20:47:48 | ✅ get_web_markdown success
2025/6/20 - 20:47:54 | ✅ get_web_markdown success
2025/6/20 - 20:47:57 | ✅ get_web_markdown success
└─ 📥145434 📤1554 🧮96.1% 💰0.0439 rmb
⚙️ Agent Response
⌨️ Today’s tech article roundup
📌 How can gravitational waves be perceived or observed?
**Summary:** This article explores the physical phenomena that occur as gravitational waves pass by, explaining their effects on space and time, and how humans might detect or experience them.
**Author:** ynoxinul
**Published:** 2 hours ago
**Link:** https://physics.stackexchange.com/questions/338912/how-would-a-passing-gravitational-wave-look-or-feel
📌 Makefile Tutorial
**Summary:** A detailed tutorial covering the basics, variables, automatic rules, and advanced features of Makefile — perfect for beginners and experienced users alike, helping developers manage build processes efficiently.
**Author:** dsego
**Published:** 4 hours ago
**Link:** https://makefiletutorial.com/
📌 Hurl: Run and test HTTP requests in plain text
**Summary:** Hurl is a command-line tool that allows you to define and execute HTTP requests in plain text, useful for data retrieval and HTTP session testing. It supports chained requests, value capture, and response assertions — ideal for testing REST, SOAP, and GraphQL APIs.
**Author:** flykespice
**Published:** 8 hours ago
**Link:** https://github.com/Orange-OpenSource/hurl
<NolebaseGitContributors />
<NolebaseGitChangelog />