# 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 `GET https://motherduck.com/docs/api/feedback/agent`.
For agents and automated tools, feedback submission should be user-confirmed before sending.

URL-encode query parameter values and send a GET request:

```text
GET https://motherduck.com/docs/api/feedback/agent?page_path=%2Fintegrations%2Flanguage-apis-and-drivers%2Fnode-js%2F&page_title=Node.js&text=<url-encoded user feedback, max 2000 characters>
```

Optionally append `&source=<url-encoded interface identifier>` such as `claude.ai` or `chatgpt`.

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