Opinion for the court filed by Chief Judge GINSBURG.
Lloyd Shaffer appeals the decision of the district court dismissing his case for want of jurisdiction. The district court held that Shaffer’s claim, which was based upon a settlement agreement he made with the United States Department of Agriculture bringing to an end both his individual case and his participation in a class-action lawsuit against the USDA, was a contract claim in excess of $10,000, and was therefore, under the Tucker Act, 28 U.S.C. § 1491(a)(1), within the exclusive jurisdiction of the Court of Federal Claims. We affirm.
I. Background
Lloyd Shaffer is a Mississippi farmer who has received assistance from the USDA during much of the past thirty years. In 1997 he filed in the district court a race discrimination claim against the USDA regarding loan applications he made in 1992 and 1997. Shaffer later joined as a named plaintiff in a class action lawsuit in the same court, covering essentially the same issues, Pigford et al. v. Glickman, Civil Action No. 97-1978 (D.D.C.). The class alleged that the USDA discriminated against black farmers in violation of the Equal Credit Opportunity Act (ECOA), 15 U.S.C. § 1691-1691Í, and the Administrative Procedure Act (APA), 5 U.S.C. §§ 701-706. In 1998 Shaffer and others settled their individual claims with the USDA; as a condition of the resulting Agreement Shaffer opted out of the Pigford suit. In return the USDA agreed, among other things, to “[f]or-give/release/cancel all [his] outstanding indebtedness to the Farm Service Agency;” to provide “priority financial and technical assistance for those USDA programs for which the Shaffers apply;” and to pay Shaffer a sum of money.
When the USDA later denied Shaffer’s Year 2000 loan application, he moved in district court for an order enforcing the Agreement. The court denied the motion on the ground that it lacked jurisdiction over the matter because Shaffer had opted out of the Pigford class action and the Agreement did not provide for the court to exercise continuing jurisdiction over his individual case.
Shaffer then filed a new complaint, alleging various breaches of the Agreement by the USDA. The district court ruled *372 that it did not have jurisdiction over the new case because the Tucker Act grants to the Court of Federal Claims jurisdiction over claims founded upon “any express or implied contract with the United States.” 28 U.S.C. § 1491(a)(1). The district court ruled that the Agreement was a “contract” within the meaning of the Tucker Act, and added,
[Invocation of the APA does not save the plaintiffs claims because the APA does not apply to requests for money damages, and is not applicable to declaratory and injunctive relief when another statute prohibits such relief from being sought in a particular court, as in the instant case. Additionally, to the extent that one would argue that this Court does have jurisdiction, the plaintiff has failed [to] establish standing to sue under the APA because he has not identified an independent statutory basis for relief, and has only based alleged authority on the Settlement Agreement over which the Court does not have jurisdiction.
The district court dismissed the case without prejudice.
II. Analysis
Shaffer argues that notwithstanding the Tucker Act, the district court has subject matter jurisdiction over his case pursuant both to the ECOA and to the APA. In the alternative he argues that the district court may exercise ancillary jurisdiction over a dispute arising out of the Agreement. The lower federal courts have only such jurisdiction as the Constitution and the Congress grant them.
See Kokkonen v. Guardian Life Ins. Co. of Am.,
A. Subject matter jurisdiction
Shaffer first argues that the district court has subject matter jurisdiction because the Agreement settled claims arising under the ECOA and the APA. Here Shaffer relies upon
Board of Trustees of Hotel and Restaurant Employees Local 25 v. Madison Hotel,
[A]n action to redress a breach of the settlement agreement directly implicates the Funds’ rights to seek enforcement of *373 the Hotel’s obligation to make “contributions in accordance with the terms and conditions of [a multiemployer] plan ...” under section 515 of ERISA, 29 U.S.C. § 1145 (1994), and of the Hotel’s obligation to pay the additional amounts in interest, liquidated damages, audit and attorneys’ fees, costs or any other additional amounts, as provided for under paragraph 3 of the settlement agreement and under section 502(g)(2) of ERISA, 29 U.S.C. § 1132(g)(2) (1994). Because, furthermore, the ERISA statute provides exclusive jurisdiction to enforce its provisions in federal courts, the district court here had federal jurisdiction to enforce the ERISA rights embodied in the settlement agreement.
Id.
at 1485-86. Unlike the settlement agreement in
Madison Hotel,
which “referred to and reserved the Funds’ right to pursue their rights to remedies enumerated and defined in the ERISA law itself,”
Shaffer’s argument for subject matter jurisdiction under the APA fails for another reason. “[T]his Court and others have interpreted the Tucker Act as providing the
exclusive
remedy for contract claims against the government, at least
vis a vis
the APA”
Transohio Savs. Bank v. Dir., Office of Thrift Supervision,
B. Ancillary Jurisdiction
Shaffer next argues that the district court may exercise ancillary jurisdiction over his claims. The Supreme Court in
Kokkonen
recognized two purposes for which a court may assert ancillary jurisdiction: (1) “to permit disposition by a single court of claims that are, in varying respects and degrees, factually interdependent,”
The situation would be quite different if the parties’ obligation to comply with the terms of the settlement agreement had been made part of the order of dismissal-either by separate provision (such as a provision “retaining jurisdiction” over the settlement agreement) or by incorporating the terms of the settlement agreement in the order. In that event, a breach of the agreement would be a violation of the order, and ancillary jurisdiction to enforce the agreement would therefore exist.
In short, a party that wants the court to retain jurisdiction over its settlement agreement should request that the district *374 court do so in its order of dismissal. Shaffer did not take this simple precaution.
Shaffer nonetheless invokes
Reed v. United States,
III. Conclusion
The district court had neither subject matter jurisdiction nor ancillary jurisdiction over Shaffer’s claim, founded, as it is, solely upon a contract with the United States. The judgment of the district court dismissing the case is, accordingly,
Affirmed.
