IntelligenceBank API Tools MCP Server
by ibproduct
An MCP server that provides tools for interacting with the IntelligenceBank API, including browser-based authentication. It simplifies the process of authenticating and interacting with the IntelligenceBank API within the Cline MCP environment.
View on GitHub
Last updated: N/A
IntelligenceBank API Tools MCP Server
An MCP server that provides tools for interacting with the IntelligenceBank API, including browser-based authentication.
Development
Local Development Setup
- Clone the repository:
git clone https://github.com/ibproduct/ib-api-tools-mcp-server.git
cd ib-api-tools-mcp-server
- Install dependencies:
npm install
- Create your .env file:
cp .env.example .env
Edit .env to set your IB_API_URL.
- Install the development version to Cline MCP:
chmod +x scripts/dev-install.sh
./scripts/dev-install.sh
- Configure VSCode MCP settings at
~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/mcp_settings.json
:
{
"mcpServers": {
"ib-api-tools-dev": {
"command": "node",
"args": [
"/Users/charly/Documents/Cline/MCP/ib-api-tools-dev/index.js"
],
"env": {
"IB_API_URL": "https://your-ib-instance.intelligencebank.com"
},
"disabled": false
}
}
}
Development Workflow
- Make changes to the source code
- Run
./scripts/dev-install.sh
to build and install to dev MCP location - Test changes using the dev server:
use_mcp_tool ib-api-tools-dev auth.login {}
- When ready, commit and push to GitHub:
git add .
git commit -m "Description of changes"
git push origin main
Production Installation
For production use, install from the released version:
- Create the installation directory:
mkdir -p ~/Documents/Cline/MCP/ib-api-tools
- Install the server:
# Clone the repository
git clone https://github.com/ibproduct/ib-api-tools-mcp-server.git
cd ib-api-tools-mcp-server
# Install and build
npm install
npm run build
# Copy to production location
cp -r package.json dist/* ~/Documents/Cline/MCP/ib-api-tools/
cd ~/Documents/Cline/MCP/ib-api-tools
npm install --production
- Configure VSCode MCP settings for production use:
{
"mcpServers": {
"ib-api-tools": {
"command": "node",
"args": [
"/Users/charly/Documents/Cline/MCP/ib-api-tools/index.js"
],
"env": {
"IB_API_URL": "https://your-ib-instance.intelligencebank.com"
},
"disabled": false
}
}
}
Available Tools
auth.login
Starts the browser login flow. This will:
- Get an initial token from IB
- Open your browser to complete login
- Poll for completion
- Store the session for subsequent requests
Example:
use_mcp_tool ib-api-tools auth.login {}
auth.status
Check the current authentication status.
Example:
use_mcp_tool ib-api-tools auth.status {}
License
MIT