
Wordware
STDIOLocal server for running Wordware AI flows in your development environment
Local server for running Wordware AI flows in your development environment
The Wordware MCP (Model Context Protocol) server allows you to run your Wordware apps locally. This enables you to integrate Wordware's powerful AI flows directly into your local development environment, making it easier to test and develop applications that leverage Wordware's capabilities.
npx wordware-mcp
The easiest way to get started is using the interactive installation process with npx:
npx wordware-mcp
This will guide you through:
The npx command will:
After running the npx command, you can start the MCP server with:
npx wordware-mcp
If you prefer to install the package permanently:
# Install globally from npm registry npm install -g wordware-mcp # Or install locally in your project npm install wordware-mcp # Or clone this repository and install globally git clone https://github.com/{username}/wordware-mcp.git cd wordware-mcp npm run install-global
Before using this package, you need:
You can run wordware-mcp using npx without installing it first:
# Interactive mode - will prompt for required information npx wordware-mcp # Or with command line parameters npx wordware-mcp --api-key your-api-key --port 3000 # Start MCP server after configuration npx wordware-mcp start
If installed globally, you can run in one of two ways:
# Option 1: Create an .env file in your current directory first (see Configuration section) wordware-mcp # Option 2: Pass parameters directly via command line wordware-mcp --api-key your-api-key --port 3000
Options:
--api-key, -k <key> Wordware API key (required unless in .env file)
--port, -p <port> Port to run the server on (default: 3000)
--help, -h Show this help message
// In your script import { startMCP } from "wordware-mcp"; // Start the MCP server startMCP();
You can configure the MCP server in two ways:
Create a .env
file with the following variables:
WORDWARE_API_KEY=your-api-key
PORT=3000
Pass the configuration directly when running the command:
wordware-mcp -k your-api-key -p 3000
To start, you'll need a Wordware account. Head to wordware.ai, sign in and create an account
For your wordware flows to be accessible via MCP, you'll need to create an API key. For that, click on your profile picture in the top right corner > API keys > Create a new key > Copy your key
Now it's time to get creative. Create a wordware app for whatever you want to achieve, or feel free to fork an app from the explore page (https://app.wordware.ai/explore).
For your app to be triggered as MCP, you'll need to deploy it. To do that, head to your app. You should see a "Deploy" button in the top right corner. Then head to the deployment page.
app_id
On the deployment page, you'll see your deployment url: https://app.wordware.ai/explore/apps/{app_id}
. Get your app_id from there
To use this MCP server with Claude Desktop:
Make sure Claude for Desktop is installed
Modify the Claude desktop config file located at:
~/Library/Application\ Support/Claude/claude_desktop_config.json
Add the following to the file:
{ "mcpServers": { "wordware": { "command": "wordware-mcp" } } }
Here's a complete workflow example to get up and running quickly:
# Run the interactive setup npx wordware-mcp # Follow the prompts to: # - Enter your Wordware API key # - Configure Claude integration (if desired) # Once configured, start the server npx wordware-mcp start
After starting the MCP server, your Wordware apps will be accessible at:
http://localhost:3000/api/run/{app_id}
You can trigger your Wordware flows via HTTP requests:
// Example: Calling your Wordware app from JavaScript async function callWordwareApp() { const response = await fetch("http://localhost:3000/api/run/your-app-id", { method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify({ // Your input data here prompt: "Your prompt to the AI model", // Any other parameters your Wordware app expects }), }); const result = await response.json(); console.log(result); }
During development, any changes you make to your Wordware apps will be immediately available - just refresh your app or make a new API call.
If you want to contribute to this package:
# Clone the repository git clone https://github.com/yuhuangou/wordware-mcp.git cd wordware-mcp # Install dependencies npm install # Build the package npm run build # Run in development mode npm run dev
MIT
"Command not found" after installation
If you see command not found
after installing with npx:
# Make sure the package is installed globally npm install -g wordware-mcp # Check your npm global path is in your PATH npm config get prefix # Add the resulting path + /bin to your PATH if needed
Configuration issues
If your configuration isn't being detected:
# Check if .env file exists in current directory ls -la .env # Manually run with parameters to bypass .env npx wordware-mcp --api-key your-api-key
Connection refused errors
If you see connection errors when trying to use your apps:
# Check if server is running lsof -i :3000 # Restart server with verbose logging npx wordware-mcp start --verbose
Permissions issues
If you encounter permissions errors with npx:
# Run with sudo (not recommended as permanent solution) sudo npx wordware-mcp # Fix npm permissions chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
For more assistance, please file an issue on our GitHub repository.
The following environment variables can be set in the .env
file:
PORT
- The port to run the server on (default: 3000)WORDWARE_API_KEY
- Your Wordware API key