pembrolizumab and capecitabine in treating patients with locally advanced or metastatic triple negative or hormone-refractory breast cancer that cannot be removed by surgery

Conditions: Estrogen Receptor Negative; HER2/Neu Negative; Progesterone Receptor Negative; Recurrent Breast Carcinoma; Stage III Breast Cancer; Stage IIIA Breast Cancer; Stage IIIB Breast Cancer; Stage IIIC Breast Cancer; Stage IV Breast Cancer; Triple-Negative Breast Carcinoma

Summary: the purpose of this study is to see whether a combination of two different drugs - pembrolizumab and capecitabine - is safe, and if it might be effective in treating triple negative and hormone-refractory breast cancer. pembrolizumab is a type of drug that contains an antibody. antibodies are the part of your immune system that finds things that don't belong in your body, such as bacteria or viruses. the antibody in pembrolizumab finds and blocks a protein, which allows your immune system to target and destroy cancer cells. pembrolizumab is food and drug administration (fda) approved for other types of cancer. it is not approved for breast cancer, meaning that it is an "experimental" or "investigational" treatment. capecitabine is a type of chemotherapy pill that is a standard treatment and fda-approved for breast cancer. it stops the cancer cells from being able to multiply.

primary objectives: i. to evaluate the median progression-free survival (median pfs) for participants receiving pembrolizumab with capecitabine for the treatment of locally advanced or metastatic triple negative breast cancer (tnbc) and hormone-refractory metastatic breast cancer (mbc). secondary objectives: i. to describe the objective response rate (orr) for participants receiving pembrolizumab with capecitabine for the treatment of locally advanced or metastatic tnbc and hormone-refractory mbc. ii. to describe the safety and tolerability of the combination of pembrolizumab and capecitabine for the treatment of locally advanced or metastatic tnbc and hormone-refractory mbc. tertiary objectives: i. analysis of expression of programmed cell death 1 ligand 1 (pd-l1) through immunohistochemical (ihc) analysis. ii. to assess circulating tumor dna (ctdna). iii. to evaluate orr and median-pfs using immune-related response evaluation criteria in solid tumors (irrecist). outline: patients receive pembrolizumab intravenously (iv) on day 1 and capecitabine orally (po) twice daily (bid) on days 1-14. courses repeat every 21 days in the absence of disease progression or unacceptable toxicity. after completion of study treatment, patients are followed up every 3 months for up to 2 years.

Eligibility criteria:
inclusion criteria: * patients must have histologically-confirmed unresectable, locally advanced or metastatic breast cancer that meets one of the following: * triple negative, defined as estrogen receptor (er) negative, progesterone receptor (pr) negative, human epidermal growth factor receptor 2 (her2) negative; her2 negative defined as immunohistochemistry (ihc) 0 or 1+ or fluorescence in situ hybridization (fish) negative * hormone-refractory breast cancer which denotes progression to endocrine therapy (e.g., tamoxifen, aromatase inhibitors, fulvestrant) unless contraindicated * patients must have an eastern cooperative oncology group (ecog) performance status =\< 2 * patients must have a life expectancy of \>= 90 days * patients must have baseline laboratory tests within the following parameters at least 4 weeks (28 days) prior to registration: * absolute neutrophil count (anc) \>= 1,500/mcl * platelets \>= 100,000/mcl * hemoglobin \>= 9 g/dl or \>= 5.6 mmol/l without transfusion or erythropoietin (epo) dependency * serum creatinine =\ = 60 ml/min for subject with creatinine levels \> 1.5 x institutional uln * serum total bilirubin =\ 1.5 uln * aspartate aminotransferase (ast) (serum glutamic-oxaloacetic transaminase \[sgot\]) and alanine aminotransferase (alt) (serum glutamate pyruvate transaminase \[sgpt\]) =\< 2.5 x uln or =\< 5 x uln for subjects with liver metastases * albumin \>= 2.5 mg/dl * international normalized ratio (inr) or prothrombin time (pt) =\< 1.5 x uln unless subject is receiving anticoagulant therapy as long as pt or partial thromboplastin time (ptt) is within therapeutic range of intended use of anticoagulants * activated partial thromboplastin time (aptt) =\< 1.5 x uln unless subject is receiving anticoagulant therapy as long as pt or ptt is within therapeutic range of intended use of anticoagulants * females of child-bearing potential (focbp) must have a negative serum or urine pregnancy test within 7 days prior to registration and must be at least within 3 days prior to first dose of study drug. if the urine test is positive or cannot be confirmed as negative, a serum pregnancy test will be required * (note: a focbp is any woman \[regardless of sexual orientation, having undergone a tubal ligation, or remaining celibate by choice\] who meets the following criteria: * has not undergone a hysterectomy or bilateral oophorectomy * has had menses at any time in the preceding 12 consecutive months (and therefore has not been naturally postmenopausal for \> 12 months) * female subjects of childbearing potential (focbp) must be willing to use an adequate method of contraception; contraception must be used for the course of the study through 120 days after the last dose of study medication * note: abstinence is acceptable if this is the usual lifestyle and preferred contraception for the subject * male subjects of childbearing potential must agree to use an adequate method of contraception; contraception must be used starting with the first dose of study therapy through 120 days after the last dose of study therapy * note: abstinence is acceptable if this is the usual lifestyle and preferred contraception for the subject * patients must have the ability to understand and the willingness to sign a written informed consent prior to registration on study * patients must be willing and able to comply with scheduled visits, treatment plan and laboratory tests * patient must be able to swallow and retain oral medication exclusion criteria: * patients with documented her2-positive metastatic disease are not eligible, even if their primary breast cancer was her2-negative * patients who have received prior anti-cancer therapy (e.g., biologic or other targeted therapy, chemotherapy) within 2 weeks prior to registration; hormone therapy is permitted until registration * note: patients who received prior anti-pd-1, pd-l1 or pd-l2 agents are still eligible * patients who have not recovered from adverse events to grade 1 severity or lower due to agents administered more than 2 weeks earlier than registration, are not eligible, except for stable sensory neuropathy (=\< grade 2) and alopecia * patients who have received radiotherapy =\< 4 weeks prior to registration, with the exception of palliative radiotherapy, who have not recovered from side effects of such therapy to baseline or grade =\< 1 are not eligible for participation * patients with central nervous system (cns) involvement may participate if they meet all the following criteria: * at least 4 weeks from prior therapy completion (including radiation and/or surgery) to starting the study treatment, * clinically stable with respect to the cns tumor at the time of screening * patients who have undergone major surgery =\< 4 weeks prior to registration or have not recovered from side effects of such procedure are not eligible for participation * patients may not be receiving any other investigational agents * patients who have a history of allergic reactions or hypersensitivity reactions attributed to compounds of similar chemical or biologic composition to pembrolizumab and/or humanized antibodies are not eligible * known hypersensitivity to capecitabine, fluorouracil, or any component of the formulation * note: prior capecitabine is permitted * history of autoimmune disease, including but not limited to myasthenia gravis, myositis, autoimmune hepatitis, systemic lupus erythematosus, rheumatoid arthritis, inflammatory bowel disease, vascular thrombosis associated with antiphospholipid syndrome, wegener's granulomatosis, sjogren's syndrome, guillain-barre syndrome, multiple sclerosis, vasculitis or glomerulonephritis * patients with history of autoimmune-related hypothyroidism on a stable dose of thyroid replacement hormone may be eligible for this study * patients with controlled type i diabetes mellitus on a stable dose of insulin regimen for more than a month may be eligible for this study * patients who have evidence of active, noninfectious pneumonitis or have a history of severe pneumonitis that required treatment with steroids are not eligible for this study; (note: replacement physiologic dose of steroids \[prednisone 10 mg daily or equivalent\] are allowed) * patients who have an uncontrolled intercurrent illness including, but not limited to any of the following, are not eligible: * hypertension that is not controlled on medication (defined as \>= 140/100 at rest, average of 3 consecutive readings) * ongoing or active infection requiring systemic treatment * symptomatic congestive heart failure * unstable angina pectoris * cardiac arrhythmia * clinically significant electrocardiogram (ecg) abnormality, e.g., a repeated demonstration of a qtc interval \> 500 ms * psychiatric illness/social situations that would limit compliance with study requirements * known positive test for human immunodeficiency virus (hiv) * has known active hepatitis b (e.g., hepatitis b surface antigen \[hbsag\] reactive) or hepatitis c (e.g., hepatitis c virus \[hcv\] ribonucleic acid \[rna\] \[qualitative\] is detected) * active tuberculosis * prior allogeneic bone marrow transplantation or solid organ transplant * administration of a live, attenuated vaccine within 4 weeks before starting the study treatment or anticipation that a live attenuated vaccine will be required during the study * any other illness or condition that the treating investigator feels would interfere with study compliance or would compromise the patient's safety or study endpoints * female patients who are pregnant or nursing (lactating) are not eligible * patients exhibiting any other condition that would, in the investigator's judgment, preclude patient's participation in the clinical study due to safety concerns or compliance with clinical study procedures are not eligible for participation; this might include, but is not limited to, infection/inflammation, intestinal obstruction, and/or social/psychological complications * patients with impaired gastrointestinal (gi) function or gi disease that may significantly alter absorption of oral capecitabine (e.g. ulcerative disease, uncontrolled nausea, vomiting, diarrhea, malabsorption syndrome or small bowel resection) are not eligible for participation * patients with a history of another malignancy that progressed or required treatment within 5 years prior to registration are not eligible for participation; note: the exceptions to this include non-melanoma skin cancer or excised carcinoma in situ of the cervix