[**European Parliament MCP Server API v1.3.9**](../../../README.md)

***

[European Parliament MCP Server API](../../../modules.md) / [utils/rateLimiter](../README.md) / createStandardRateLimiter

# Function: createStandardRateLimiter()

> **createStandardRateLimiter**(): [`RateLimiter`](../classes/RateLimiter.md)

Defined in: [utils/rateLimiter.ts:393](https://github.com/Hack23/European-Parliament-MCP-Server/blob/main/src/utils/rateLimiter.ts#L393)

Creates a [RateLimiter](../classes/RateLimiter.md) pre-configured for EP API usage.

Default configuration: **100 tokens per minute** — aligned with the
European Parliament Open Data Portal's recommended fair-use policy.

## Returns

[`RateLimiter`](../classes/RateLimiter.md)

A new [RateLimiter](../classes/RateLimiter.md) instance with standard EP API settings

## Example

The token capacity is configurable via the `EP_RATE_LIMIT` environment
variable (must be a positive integer). When the variable is absent, empty,
non-numeric, zero, or negative, the factory falls back to 100 tokens/min.

```typescript
const rateLimiter = createStandardRateLimiter();
const result = await rateLimiter.removeTokens(1);
if (result.allowed) {
  const data = await fetchFromEPAPI('/meps');
}
```

## Security

Ensures sustainable OSINT collection rates from the EP API and
  prevents service disruption. Per ISMS Policy AC-003, rate limiting is a
  mandatory access control for external API calls.

## Since

0.8.0
