# Create A Ramp Client

The `MceRampClient` is your entry point for all ramp operations. It authenticates against the MCE API using a client ID and secret, which you should keep server-side.

```
import { MCE_PRODUCTION_BASE_URL, MceRampClient } from "@cityprotocol/core";

const rampClient = new MceRampClient({
  clientId: process.env.MCE_CLIENT_ID!,
  clientSecret: process.env.MCE_CLIENT_SECRET!,
  baseUrl: MCE_PRODUCTION_BASE_URL,
});
```

The `MCE_PRODUCTION_BASE_URL` constant is exported from the package so you don't have to hardcode endpoints. Pass your credentials via environment variables and you're good to go.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://city-protocol.gitbook.io/docs/software-development-kit/on-off-ramp-module/create-a-ramp-client.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
