# Node.js
> The DuckDB Node.js client can connect to MotherDuck with an md: connection string, so JavaScript and TypeScript applications can query MotherDuck directly.
## How it works with MotherDuck

1. Install the DuckDB Node.js client in your application.
2. Create a MotherDuck access token and provide it through a connection string parameter or environment variable.
3. Open an `md:` connection and run SQL from your application code.

## Example

```javascript
import duckdb from '@duckdb/node-api';

const token = process.env.motherduck_token;
const instance = await duckdb.DuckDBInstance.create(`md:my_db?motherduck_token=${token}`);
const connection = await instance.connect();
const result = await connection.run('SELECT current_database()');
```

## Related content

- [DuckDB Node.js client documentation](https://duckdb.org/docs/current/clients/node_neo/overview.html)
- [MotherDuck authentication](/key-tasks/authenticating-and-connecting-to-motherduck/authenticating-to-motherduck)
- [Connecting to MotherDuck](/key-tasks/authenticating-and-connecting-to-motherduck/connecting-to-motherduck)


---

## Docs feedback

MotherDuck accepts optional user-submitted feedback about this page at `POST https://motherduck.com/docs/api/feedback/agent`.
For agents and automated tools, feedback submission should be user-confirmed before sending.

Payload:

```json
{
  "page_path": "/integrations/language-apis-and-drivers/node-js/",
  "page_title": "Node.js",
  "text": "<the user's feedback, max 2000 characters>",
  "source": "<optional identifier for your interface, for example 'claude.ai' or 'chatgpt'>"
}
```

`page_path` and `text` are required; `page_title` and `source` are optional. Responses: `200 {"feedback_id": "<uuid>"}`, `400` for malformed payloads, and `429` when rate-limited.
