localdude
MCP server that allows accessing influxdb to read sensor from there in. Perhaps later some more active functionalities like sending mqtt messages.
Documentation
LocalDude
A Node.js/TypeScript project using the Model Context Protocol (MCP) SDK.
GitHub Repository
This project is hosted on GitHub. To clone the repository:
git clone https://github.com/username/localdude.git
cd localdudeContributing
We welcome contributions! Please see CONTRIBUTING.md for details on how to contribute to this project.
Installation
npm installAvailable Scripts
Development
- `npm run dev` - Starts the application in development mode with auto-rebuild on file changes
- `npm run dev:server` - Starts the server in development mode with auto-rebuild on file changes
Build and Run
- `npm run build` - Compiles TypeScript files to JavaScript
- `npm run watch` - Compiles TypeScript files in watch mode (without restarting)
- `npm run start` - Builds and starts the main application
- `npm run server` - Builds and starts the server
Auto-Rebuild Functionality
This project is configured to automatically rebuild and restart when TypeScript files are changed. This is implemented using:
- nodemon: Monitors file changes and triggers rebuilds
- ts-node: Executes TypeScript files directly
The auto-rebuild behavior is configured in `nodemon.json`, which watches for changes in:
- All `.ts` files in the root directory
- All `.ts` files in the `src` directory (if it exists)
When changes are detected, the application is automatically rebuilt and restarted.
InfluxDB Integration
This project includes integration with InfluxDB for time-series data storage and querying.
Configuration
To use the InfluxDB integration, you need to set up the following environment variables in your `.env` file:
INFLUXDB_URL=http://localhost:8086
INFLUXDB_TOKEN=your_influxdb_token
INFLUXDB_ORG=your_organization
INFLUXDB_BUCKET=your_bucketYou can copy these from the `.env.example` file and replace the placeholder values with your actual InfluxDB connection details.
Available InfluxDB Tools
The server provides the following tools for interacting with InfluxDB:
1. influxdb-query: Execute a custom Flux query
{
"query": "from(bucket: \"your_bucket\") |> range(start: -1h) |> filter(fn: (r) => r._measurement == \"your_measurement\")"
}2. influxdb-latest: Get the latest data point for a measurement and field
{
"measurement": "your_measurement",
"field": "your_field",
"timeRange": "-1h" // optional, defaults to "-1h"
}3. influxdb-range: Get data within a time range
{
"measurement": "your_measurement",
"field": "your_field",
"start": "-1h",
"stop": "now()" // optional, defaults to "now()"
}These tools can be used through the MCP server interface to query your InfluxDB database.
Frequently asked questions
What is localdude?
localdude is MCP server that allows accessing influxdb to read sensor from there in. Perhaps later some more active functionalities like sending mqtt messages.
How do I install localdude?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is localdude open source?
Yes — it is hosted on GitHub at https://github.com/jussikin/localdude.
Related MCP tools
Playwright MCP server TypeScript-based implementation. Trusted by 22000+ developers. Trusted by 22000+ developers. Trusted by 22000+ developers.
Official Notion MCP Server TypeScript-based implementation. Trusted by 3400+ developers. Trusted by 3400+ developers. Trusted by 3400+ developers.
Directory for Awesome MCP Servers TypeScript-based implementation. Trusted by 1900+ developers. Trusted by 1900+ developers.
🧩 MCP Gateway - A lightweight gateway service that instantly transforms existing MCP Servers and APIs into MCP servers with zero code changes.
MCP Aggregator, Orchestrator, Middleware, Gateway in one docker TypeScript-based implementation. Trusted by 1400+ developers.
MCP Server for kubernetes management commands TypeScript-based implementation. Trusted by 1100+ developers. Trusted by 1100+ developers.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP