mcpbind-toolkit
v0.0.1
Published
MCP server for MCPBind operations
Maintainers
Readme
MCPBind Server
A Model Context Protocol (MCP) server that provides tools for AI models to interact with MCPBind services.
Features
- Execute prompts on MCPBind servers
Installation
Global Installation (for CLI usage)
npm install -g mcpbind-toolkitLocal Installation
npm install mcpbind-toolkitUsage
Using with npx
# Set required environment variables
export MCP_BIND_TOKEN=your_token
export MCP_SERVER_NAME=your_server_name
# Run the server using npx
npx mcpbind-toolkitAs a standalone server
# Set required environment variables
export MCP_BIND_TOKEN=your_token
export MCP_SERVER_NAME=your_server_name
# Run the server
mcpbind-serverAs a library
import { BindClient, startServer } from 'mcpbind-toolkit';
// Initialize the client
const bindClient = new BindClient({
token: "your_token",
defaultServerName: "your_server_name"
});
// Use the client directly
const result = await bindClient.executeServer(
"optional_override_token",
"optional_override_server_name",
"Your prompt here"
);
// Or start the MCP server
startServer({
token: "your_token",
defaultServerName: "your_server_name"
});Available Tools
mcp_server_execute- Use this tool to execute the MCP server tools for the server that is provided. Requires a server name and prompt to execute.- Parameters:
token- Authentication token (optional if set in environment variables)server_name- Name of the MCP server (optional if set in environment variables)prompt- The prompt to execute (required)
- Parameters:
Environment Variables
MCP_BIND_TOKEN- Authentication token for MCP operationsMCP_SERVER_NAME- Default server name for MCP server operations
Development
# Install dependencies
npm install
# Build TypeScript
npm run build
# Run the server
npm startExample
Here's an example of how to use the MCPBind server with an AI model:
// AI model code
const response = await callTool("mcp_server_execute", {
prompt: "What is the capital of France?"
});
// The token and server_name are automatically provided from environment variables
console.log(response);License
MIT
