[guided]The purpose of the forcing construction is to build one real number while imposing fewer than $\mathfrak c$ many avoidance requirements. The conditions are rational open intervals, and a stronger condition is a smaller interval whose closure lies inside the old one. Formally, let $\mathbb P$ be the set of all nonempty open intervals in $\mathbb R$ with rational endpoints, ordered by $q \leq p$ iff either $q = p$ or $\overline q \subset p$.
We first verify that Martin's axiom can be applied. The equality alternative makes the order reflexive. Transitivity follows because if $r \leq q$ and $q \leq p$, then either one of the relations is equality or $\overline r \subset q \subset \overline q \subset p$, so $r \leq p$. Antisymmetry follows because strict closure containment in both directions is impossible, so $q \leq p$ and $p \leq q$ imply $q = p$. Thus $\mathbb P$ is a poset. It is countable because rational endpoints form a [countable set](/page/Countable%20Set) of pairs. Therefore every antichain in $\mathbb P$ is countable, so $\mathbb P$ has the countable chain condition.
Now fix one [nowhere dense set](/page/Nowhere%20Dense%20Set) $N_{i,n}$. We want a dense set of conditions that already avoid $N_{i,n}$. Define
\begin{align*}
D_{i,n} := \{p \in \mathbb P : \overline p \cap N_{i,n} = \varnothing\}.
\end{align*}
This is dense. To prove density, take any $p \in \mathbb P$. Since $N_{i,n}$ is nowhere dense, the [closed set](/page/Closed%20Set) $\overline{N_{i,n}}$ has empty interior. Hence $p$ cannot be contained in $\overline{N_{i,n}}$, so $p \setminus \overline{N_{i,n}}$ contains a nonempty open interval. Choose a rational open interval $q$ whose closure is contained in $p \setminus \overline{N_{i,n}}$. Then $q \leq p$ and $\overline q \cap N_{i,n} = \varnothing$, so $q \in D_{i,n}$.
We also need the intervals chosen by the filter to shrink to a single point. For each $m \in \mathbb N$, define
\begin{align*}
E_m := \{p \in \mathbb P : \text{the length of } p \text{ is less than } 1/m\}.
\end{align*}
This set is dense because every nonempty rational open interval contains a rational open subinterval of length less than $1/m$ whose closure lies inside the original interval.
The number of dense requirements is still less than $\mathfrak c$:
\begin{align*}
|\{D_{i,n} : (i,n) \in J\} \cup \{E_m : m \in \mathbb N\}| \leq |J| + \aleph_0 < \mathfrak c.
\end{align*}
Define $\kappa := |\mathcal D|$. Since $\kappa < \mathfrak c$, the hypothesis gives $MA_\kappa$. Applying $MA_\kappa$ to the countable chain condition poset $\mathbb P$ and this family of at most $\kappa$ dense subsets gives a filter $G \subseteq \mathbb P$ meeting every $D_{i,n}$ and every $E_m$.[/guided]