✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more

MCP Server of MCP Bone

What’s MCP Bone?

MCP Bone is a online service that provides a set of tools for MCP. Home Page On MCP Bone, you can register other MCP Servers, get function calling tools JSON or XML-style prompt text and later call tools easily. Read Usage

This package is a Node.js module that provides a MCP Server connect to MCP Bone. You can use it to connect to MCP Bone and get the tools JSON.

Also, you can use this package as a parser SDK to parse completion text to tool_calls.

Setup

Access Token

Get an Access Token:

  1. go to https://store.tangshuang.net?scope=mcp-bone
  2. register an account and log in
  3. go to https://store.tangshuang.net/product/58/entry?scope=mcp-bone to create a new App
  4. go to the App’s Certificate menu page to create a new certificate
  5. copy the Access Token

NPX

{
    "mcpServers": {
        "mcp-bone": {
            "command": "npx",
            "args": [
                "-y",
                "mcp-bone"
            ],
            "env": {
                "MCP_BONE_ACCESS_TOKEN": ""
            }
        }
    }
}

Parser

import {
    extractAndParseToolsToJson,
    extractAndParseToolsXmlToJson,
    extractAndParseToolsTextToJson,
} from 'mcp-bone';

const tools = extractAndParseToolsTextToJson(text);
const tools = extractAndParseToolsXmlToJson(text);
const tools = extractAndParseToolsToJson(text);

These tools are used after LLM completions whic does not support function calling to parse the text into tools JSON. If the result is an empty array, it means that the LLM did not generate any tools.

Featured Templates

View More
Data Analysis
Pharmacy Admin Panel
252 1957
AI Assistants
AI Chatbot Starter Kit v0.1
140 913
AI Assistants
Talk with Claude 3
159 1523
Verified Icon
AI Assistants
Speech to Text
137 1882

Start your free trial

Build your solution today. No credit card required.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.