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

***

[European Parliament MCP Server API](../../../modules.md) / [types/branded](../README.md) / createMEPID

# Function: createMEPID()

> **createMEPID**(`value`): [`MEPID`](../type-aliases/MEPID.md)

Defined in: [types/branded.ts:204](https://github.com/Hack23/European-Parliament-MCP-Server/blob/main/src/types/branded.ts#L204)

Factory function to create a validated MEP ID

## Parameters

### value

`string`

String to convert to MEP ID

## Returns

[`MEPID`](../type-aliases/MEPID.md)

Branded MEP ID

## Throws

If value is not a valid MEP ID format

## Example

```typescript
const mepId = createMEPID("124936");
const details = await getMEPDetails(mepId);
```

## Security

Input validation prevents injection attacks
